mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3287: PreUpdateEventArgs need to extend Doctrine\Common\PreUpdateEventArgs #4065
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 (Aug 29, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user zebba:
Currently the inheritance tree of the EventArgs don't allow for creating event listeners that fit both ORM- and MongoDB-driven applications.
Doctrine\Common defines base classes for Lifecycle event arguments. Doctrine\ORM uses the common library and extends it's classes. So does MongoDB. If you wanted to write something that suits both ORM and MongoDB you should be able to rely on the Common-implementations.
The provided classes to extend:
Checking the Github repository there is no common ground for the inheritance mechanism.
This needs to change and ORM\PreUpdateEventArgs as well as ORM\OnClearEventArgs need to extend the respective events from Doctrine\Common.
@doctrinebot commented on GitHub (Aug 29, 2014):
@doctrinebot commented on GitHub (Sep 23, 2014):
Comment created by zebba:
See https://github.com/doctrine/doctrine2/pull/1144
@doctrinebot commented on GitHub (Oct 4, 2014):
Comment created by stof:
All flush event args should be updated to extend ManagerEventArgs (and marking their
getEntityManagermethod as deprecated too)@doctrinebot commented on GitHub (Oct 4, 2014):
Comment created by stof:
to be clear, the change on
PreUpdateEventArgscannot be done until 3.0 because of BC@doctrinebot commented on GitHub (Oct 19, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1144] was assigned:
https://github.com/doctrine/doctrine2/pull/1144
@doctrinebot commented on GitHub (Jan 15, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1144] was closed:
https://github.com/doctrine/doctrine2/pull/1144