[DDC-2296] Naming Strategy ORM Entity - plural problem Created: 14/Feb/13 Updated: 14/Mar/13 Resolved: 14/Mar/13 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | ORM |
| Affects Version/s: | 2.3.2 |
| Fix Version/s: | None |
| Security Level: | All |
| Type: | Bug | Priority: | Major |
| Reporter: | keks nicoh | Assignee: | Benjamin Eberlei |
| Resolution: | Can't Fix | Votes: | 0 |
| Labels: | None | ||
| Description |
|
We are using Doctringe since 2.2.2. We the follow relation: manyToMany: As expected the generated methods in our entities were named like: addCategory() After we updated to 2.3.2 we got the follow method names: addCategorie() I found in the changelog some notes like "changed naming strategy". |
| Comments |
| Comment by Benjamin Eberlei [ 14/Mar/13 ] |
|
Its "just" a new behavior, sadly non BC. The EntityGenerator is really a mess in that regard, because its very hard to test as well. However all the methods are "protected", so you should be able to extend it with your custom entity generator and fixing it. We are slowly deprecating the EntityGenerator, because this kind of problem and its huge monolithic structure makes it so hard to use and customize. |