tgc/edit-content-fix

此包最新版本(dev-master)没有可用的许可证信息。

...

dev-master 2017-09-01 14:41 UTC

This package is not auto-updated.

Last update: 2024-09-24 18:12:29 UTC


README

激活此包

<?php
// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        );
    }
}

将扩展添加到您的映射

<?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

启用可翻译

<?php
// app/config/config.yml
stof_doctrine_extensions:
    orm:
        default:
            translatable: true