[PR #1489] fix entity update #9550

Closed
opened 2026-01-22 16:04:39 +01:00 by admin · 0 comments
Owner

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.

**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.
admin added the pull-request label 2026-01-22 16:04:39 +01:00
admin closed this issue 2026-01-22 16:04:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9550