mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #11621] EntityGenerator lifecycle callbacks #13138
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/11621
State: closed
Merged: Yes
This PR addresses a problem in the Entity Generator. when adding the same lifecycle event callback to two or more lifecycle events the generator will create a stub for each event each with the same method name. This results in fatal 'Cannot redeclare' errors. This Problem occurred only if the callback name contains uppercase letters.
this PR intends to fix this issue by updating the EntityGenerator to allow the same callback to be triggered by multiple event.