DDC-2186: PreFlushEventArgs not passed by ClassMetadataInfo::invokeLifecycleCallbacks() #2879

Closed
doctrinebot opened this Issue Dec 5, 2012 · 4 comments

1 participant

@doctrinebot

Jira issue originally created by user kherge:

As described in the documentation (http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#preflush) my pre-flush lifecycle callback is not receiving an instance of Doctrine\ORM\Event\PreFlushEventArgs when called in Doctrine\ORM\Mapping\ClassMetadataInfo::invokeLifecycleCallbacks().

@doctrinebot

Comment created by @FabioBatSilva:

Hi Kevin,
The current lifecycle event system does not allow access to the event args. :
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#lifecycle-callbacks.

Now it is possible just by using the EventManager :
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#listening-to-lifecycle-events

Just after DDC-1955 : (#423) be merged it will be possible.

Cheers

@doctrinebot

Comment created by @FabioBatSilva:

Change issue type, since it's not a bug.

@doctrinebot

Comment created by @FabioBatSilva:

fixed : 71a68a5

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.4 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment