-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidConfigurationException: Unrecognized options "auto_mapping" under "doctrine.orm" #141
Comments
you are mixing the short syntax and the complete syntax for the ORM config. You should choose one of them only. short syntax: doctrine:
orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true
mappings:
StofDoctrineExtensionsBundle: ~ expanded syntax: doctrine:
orm:
auto_generate_proxy_classes: %kernel.debug%
entity_managers:
default:
auto_mapping: true
mappings:
StofDoctrineExtensionsBundle: ~ And btw, your config for the mapping is wrong. There is no entity in the bundle at all (and they would be catched by the auto_mapping otherwise anyway). What needs to be mapped are the entities of the extensions. See the related documentation |
Thank you, i didn't know that expanded syntax!!!, good man! |
Didn't know of the short <> complete syntax discrepancy either. Thank you! |
Thanks for the solution though i have not asked this questions but i have also faced this questions :) |
I have a quick related question:
will allow |
Using this config and SYmfony 2.7
I have an error : I tried to add a use statement in my reposotory... |
Same issue... I have an error : |
@BigWenceslas These classes don't belong to this bundle, nor to the Gedmo extensions. So this is the wrong place to report this. |
Hi,
after following the instructions to install this bundle, Im getting this error:
I found other issues related to this problem but i did not find a solution..
This is my config.yml:
and this below is my composer.phar:
Javi
The text was updated successfully, but these errors were encountered: