mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3739: [GH-1410] Skip generate lifecycle methods if they already generated #4587
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?
Originally created by @doctrinebot on GitHub (May 15, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of aivus:
Url: https://github.com/doctrine/doctrine2/pull/1410
Message:
This happens when I use one lifecycle method in prePersist and preUpdate together. Like
Before generator generate two methods with the same names.
@Ocramius, what do you think what is better way to write test for this?
Should I test generateEntityLifecycleCallbackMethods directly?
@aivus commented on GitHub (Dec 14, 2015):
Hi, @beberlei
Can you review #1410 ?