mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1489] fix entity update #9550
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/1489
State: closed
Merged: No
Currently if you add a new property to an existing entity, properties and their getters/setters are added to the end of the entity class. As a result, properties will be mixed with the methods that isn't normal.
This change divides the process of inserting the generated properties and methods. New methods are inserted in the old way to the end of the entity class. But new properties are inserted before the first method of a class, and thus adjacent to the remaining properties.
The method generateEntityBody is left for backward compatibility.