[DDC-1825] generate entities with traits Created: 18/May/12 Updated: 01/Dec/14
|Project:||Doctrine 2 - ORM|
|Reporter:||Matthias Breddin||Assignee:||Benjamin Eberlei|
php 5.4.3, symfony2.1-dev
When a trait with included setters and getters is used and generate entities is called, doctrine add another set of getters and setters to the "main" entity where the trait is used.
|Comment by Martin Aarhof [ 01/May/14 ]|
Now when I run php app/console doctrine:generate:entities it copies everything from the trait and into the entity, so the entity now looks like
And ofcourse invalidates the entity because it now has two methods of the getCreated and two of private $created
|Comment by Wilgert Velinga [ 01/Dec/14 ]|
Unfortunately I am also suffering from this bug. Is there anything I can do to help resolve it?