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
The EntityGenrator creates invalid php 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 resulting in fatal 'Cannot redeclare' errors. That is, only if the callback name contains uppercase letters.
Current behavior
Multiple methods with the same name are generated resulting in fatal errors.
How to reproduce
I added test cases in my pr #11621 showcasing the behavior.
In any case this can easily be reproduced by adding a callback with a name containing uppercase letters to multiple lifecycle events.
When running the EntityGenerator invalid php is being generated..
Expected behavior
lifecycle event callbacks should be added only once with according annotations for multiple events.
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
The EntityGenrator creates invalid php 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 resulting in fatal 'Cannot redeclare' errors. That is, only if the callback name contains uppercase letters.
Current behavior
Multiple methods with the same name are generated resulting in fatal errors.
How to reproduce
I added test cases in my pr #11621 showcasing the behavior.
In any case this can easily be reproduced by adding a callback with a name containing uppercase letters to multiple lifecycle events.
When running the EntityGenerator invalid php is being generated..
Expected behavior
lifecycle event callbacks should be added only once with according annotations for multiple events.
The text was updated successfully, but these errors were encountered: