class HydrationCompleteHandler (View source)

Class, which can handle completion of hydration cycle and produce some of tasks.

In current implementation triggers deferred postLoad event.

Methods

__construct(ListenersInvoker $listenersInvoker, EntityManagerInterface $em)

Constructor for this object

deferPostLoadInvoking(ClassMetadata $class, $entity)

Method schedules invoking of postLoad entity to the very end of current hydration cycle.

hydrationComplete()

This method should me called after any hydration cycle completed.

Details

__construct(ListenersInvoker $listenersInvoker, EntityManagerInterface $em)

Constructor for this object

Parameters

ListenersInvoker $listenersInvoker
EntityManagerInterface $em

deferPostLoadInvoking(ClassMetadata $class, $entity)

Method schedules invoking of postLoad entity to the very end of current hydration cycle.

Parameters

ClassMetadata $class
$entity

hydrationComplete()

This method should me called after any hydration cycle completed.

Method fires all deferred invocations of postLoad events