Commit 6a526bf
To use annotations, files must be removed
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.1 parent 68cdbee commit 6a526bf
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
0 commit comments