Last active
August 29, 2015 14:27
-
-
Save RaphaelBlehoue/d6322dc5908b1e15e28f to your computer and use it in GitHub Desktop.
Solution de l'erreur [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "naming_strategy" under "doctrine.orm" du Bundle stof/doctrine-extensions-bundle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
orm: | |
auto_generate_proxy_classes: "%kernel.debug%" | |
entity_managers: | |
default: | |
naming_strategy: doctrine.orm.naming_strategy.underscore | |
auto_mapping: true | |
mappings: | |
gedmo_translatable: | |
type: annotation | |
prefix: Gedmo\Translatable\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity" | |
alias : GedmoTranslatable # (optional) it will default to the name set for the mapping | |
is_bundle : false | |
gedmo_translator: | |
type: annotation | |
prefix: Gedmo\Translator\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity" | |
alias: GedmoTranslator # (optional) it will default to the name set for the mapping | |
is_bundle : false | |
gedmo_loggable: | |
type : annotation | |
prefix : Gedmo\Loggable\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity" | |
alias : GedmoLoggable # (optional) it will default to the name set for the mappingmapping | |
is_bundle : false | |
gedmo_tree: | |
type: annotation | |
prefix: Gedmo\Tree\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity" | |
alias : GedmoTree # (optional) it will default to the name set for the mapping | |
is_bundle: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
orm: | |
auto_generate_proxy_classes: "%kernel.debug%" | |
naming_strategy: doctrine.orm.naming_strategy.underscore | |
entity_managers: | |
default: | |
auto_mapping: true | |
mappings: | |
gedmo_translatable: | |
type: annotation | |
prefix: Gedmo\Translatable\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity" | |
alias : GedmoTranslatable # (optional) it will default to the name set for the mapping | |
is_bundle : false | |
gedmo_translator: | |
type: annotation | |
prefix: Gedmo\Translator\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity" | |
alias: GedmoTranslator # (optional) it will default to the name set for the mapping | |
is_bundle : false | |
gedmo_loggable: | |
type : annotation | |
prefix : Gedmo\Loggable\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity" | |
alias : GedmoLoggable # (optional) it will default to the name set for the mappingmapping | |
is_bundle : false | |
gedmo_tree: | |
type: annotation | |
prefix: Gedmo\Tree\Entity | |
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity" | |
alias : GedmoTree # (optional) it will default to the name set for the mapping | |
is_bundle: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
si jamis vous tombez sur cette erreur : [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized option "naming_strategy" under "doctrine.orm"
mettez le fichier config.yml configuration virez les elements dont vous n'avez pas besoins pour optimiser le code.
cette solution m'a été donnée sur IRC de Symfony par : , , , un grand merci.
deplacement de la ligne : naming_strategy: doctrine.orm.naming_strategy.underscore sous le default