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
Jira issue originally created by user jacobwalker0814:
When I use orm:generate-entities --generate-methods=true to add methods to an existing entity (such as when I add new properties) the generator will redeclare methods if my existing entity is using different case. This is a fatal error because PHP method names are treated as case insensitive.
I have not tested this in 2.4.
Here is a minimal example entity before running the generator. Not the case of getID
Hmm yeah it seems the EntityGenerator does not use reflection to determine whether a method/property already exists but instead tokenizes the source file and compares the methods/properties case-sensitive.
I will have a look at it.
Jira issue originally created by user jacobwalker0814:
When I use
orm:generate-entities --generate-methods=true
to add methods to an existing entity (such as when I add new properties) the generator will redeclare methods if my existing entity is using different case. This is a fatal error because PHP method names are treated as case insensitive.I have not tested this in 2.4.
Here is a minimal example entity before running the generator. Not the case of
getID
And after running the generator
The text was updated successfully, but these errors were encountered: