mediatekformation

HydrationCompleteHandler
in package

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

In current implementation triggers deferred postLoad event.

Table of Contents

$deferredPostLoadInvocations  : array<string|int, array<string|int, mixed>>
$em  : EntityManagerInterface
$listenersInvoker  : ListenersInvoker
__construct()  : mixed
Constructor for this object
deferPostLoadInvoking()  : void
Method schedules invoking of postLoad entity to the very end of current hydration cycle.
hydrationComplete()  : void
This method should me called after any hydration cycle completed.

Properties

$deferredPostLoadInvocations

private array<string|int, array<string|int, mixed>> $deferredPostLoadInvocations = []

Methods

deferPostLoadInvoking()

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

public deferPostLoadInvoking(ClassMetadata $class, object $entity) : void
Parameters
$class : ClassMetadata
$entity : object
Return values
void

hydrationComplete()

This method should me called after any hydration cycle completed.

public hydrationComplete() : void

Method fires all deferred invocations of postLoad events

Return values
void

Search results