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
There is currently no way to extend the EntityGenerator.
You can make custom types but the stubs methods will always be generic getters and setters. Which can, with certain types be really innapropriate.
It would be really useful to have a way to interact with EntityGenerator->generateEntityStubMethods.
The text was updated successfully, but these errors were encountered:
The code generator in doctrine ORM is just meant to get you kickstarted once at the beginning of a project, and then you are supposed to edit the code yourself, manually.
Ok, I get it. But still if I can't customize the stubs for my custom type is there a way to prevent the incorrect getters/setters being generated ?
Let's take a practical example, if I got a Set datatype I'll want add, remove and get methods. But the entity generator will keep on adding a set method. What's the best practice here ?
There is currently no way to extend the
EntityGenerator
.You can make custom types but the stubs methods will always be generic getters and setters. Which can, with certain types be really innapropriate.
It would be really useful to have a way to interact with
EntityGenerator->generateEntityStubMethods
.The text was updated successfully, but these errors were encountered: