You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #6251 To use annotations, files must be removed (pbowyer)
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes#6251).
Discussion
----------
To use annotations, files must be removed
| Q | A
| ------------- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | Tested on 3.0
| Fixed tickets | N/A
I'm proposing this change after spending an hour trying to work out why my Repository class wasn't loading.
Thanks to `ysor123` on IRC, we diagnosed the problem was the XML mapping files generated when reverse engineering my database, which I hadn't deleted.
This is obliquely referred to at http://symfony.com/doc/current/book/doctrine.html#add-mapping-information:
> A bundle can accept only one metadata definition format. For example, it's not possible to mix YAML metadata definitions with annotated PHP entity class definitions.
It'd be great to clarify this for future readers.
Commits
-------
06de6c0 Updated per xabbuh's comment
6a526bf To use annotations, files must be removed
0 commit comments