stof / StofDoctrineExtensionsBundle

Integration bundle for DoctrineExtensions by l3pp4rd in Symfony
https://symfony.com/bundles/StofDoctrineExtensionsBundle/current/index.html
MIT License
1.89k stars 379 forks source link

Probleme non existent service stof_doctrine_extensions.listener.translatable #396

Closed libressence closed 1 year ago

libressence commented 5 years ago

When i add

admin.page:
    class: App\Admin\PageAdmin
    arguments: [~, App\Entity\Page, ~]
    tags:
        - { name: sonata.admin, manager_type: orm, label: Page }

in services.yaml,

i have a problem after type command bin/console cache:clear : The service "sonata_translation.admin.extension.gedmo_translatable" has a dependency on a non-existent service "stof_doctrine_extensions.listener.translatable".

Why ??

spolischook commented 4 years ago

You should enable it in configuration:

stof_doctrine_extensions:
    default_locale: en_US
    orm:
        default:
            translatable: true # <--- this will enable listener