Thanks to visit codestin.com
Credit goes to github.com

Skip to content

doctrine: reverse_engineering: yml #2868

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

Closed
rvanginneken opened this issue Jul 31, 2013 · 3 comments
Closed

doctrine: reverse_engineering: yml #2868

rvanginneken opened this issue Jul 31, 2013 · 3 comments
Labels
actionable Clear and specific issues ready for anyone to take them. bug Doctrine

Comments

@rvanginneken
Copy link
Contributor

http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html -> YML Mapping: Did not work as suggested (namespace errors). Fixed by executing doctrine:mapping:import AcmeBlogBundle yml after doctrine:mapping:convert.

@xabbuh
Copy link
Member

xabbuh commented Jul 31, 2013

Is there any advantage to use doctrine:mapping:convert with --from-database option in favor of doctrine:mapping:import in this use case?

@rvanginneken
Copy link
Contributor Author

Good point. I just followed the guide and this fixed it for me, but I just tried this way and it works fine. Maybe it still can be added to the guide, because I wasted some time on it and so could others..
Commands used:
php app/console doctrine:mapping:import --force --em=default AcmeBlogBundle yml
php app/console doctrine:generate:entities AcmeBlogBundle --no-backup

@xabbuh
Copy link
Member

xabbuh commented Aug 1, 2013

You're absolutely right. The guide as it is does not work. I assume we can replace doctrine:mapping:convert with doctrine:mapping:import. I'll dig a bit into this issue and create a pull request for this.

Nonetheless, feedback whether or not this is a good idea is really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. bug Doctrine
Projects
None yet
Development

No branches or pull requests

3 participants