[PR #11621] EntityGenerator lifecycle callbacks #13138

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

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.

**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.
admin added the pull-request label 2026-01-22 16:16:18 +01:00
admin closed this issue 2026-01-22 16:16:18 +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#13138