doctrine/mongodb-odm — pull request #326 by jstout24 (2012-06-11 19:34:17+00:00)
Title: Modified UnitOfWorks dispatching of postUpdate events to use LifecycleEventArgs instead of Event\PreUpdateEventArgs

I noticed a bug when using ODM event subscribers with postUpdate events.

I had a collection `Path` with embedded document `Template`. Upon editing a `Template`, postUpdate args for the Path collection would be an instanceof `LifecycleEventArgs` which (I believe) is correct. The template embedded document would be an instance of PreUpdateEventArgs (which doesn't make sense here anyway).

I tested this patch and it appears to be working.