Added getDoctrineObject method to retrieve an entity or document from a LifecycleEventArgs instance in the unified Listener class