library edit-content-fix
...
- Friday, September 1, 2017
- by gandariel
- Repository
- 0 Watchers
- 0 Stars
- 2 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Translatable install :
Activate the bundle:
``` php
<?php
// app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ..., (*1)
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
);
}
}, (*2)
## Add extensions to your mapping
``` php
<?php
// app/config/config.yml
doctrine:
orm:
mappings:
translatable:
type: annotation
is_bundle: false
prefix: Gedmo\Translatable\Entity
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
alias: GedmoTranslatable
Enable translatable
php
<?php
// app/config/config.yml
stof_doctrine_extensions:
orm:
default:
translatable: true, (*3)