class LifecycleEventManager (View source)

Methods

__construct(DocumentManager $dm, UnitOfWork $uow, EventManager $evm)

No description

bool
documentNotFound(object $proxy, mixed $id)

No description

postCollectionLoad(PersistentCollectionInterface $coll)

Dispatches postCollectionLoad event.

postPersist(ClassMetadata $class, $document)

Invokes postPersist callbacks and events for given document cascading them to embedded documents as well.

postRemove(ClassMetadata $class, $document)

Invokes postRemove callbacks and events for given document.

postUpdate(ClassMetadata $class, $document)

Invokes postUpdate callbacks and events for given document. The same will be done for embedded documents owned by given document unless they were new in which case postPersist callbacks and events will be dispatched.

prePersist(ClassMetadata $class, $document)

Invokes prePersist callbacks and events for given document.

preRemove(ClassMetadata $class, $document)

Invokes prePersist callbacks and events for given document.

preUpdate(ClassMetadata $class, $document)

Invokes preUpdate callbacks and events for given document cascading them to embedded documents as well.

Details

__construct(DocumentManager $dm, UnitOfWork $uow, EventManager $evm)

Parameters

DocumentManager $dm
UnitOfWork $uow
EventManager $evm

bool documentNotFound(object $proxy, mixed $id)

Parameters

object $proxy
mixed $id

Return Value

bool Returns whether the exceptionDisabled flag was set

postCollectionLoad(PersistentCollectionInterface $coll)

Dispatches postCollectionLoad event.

postPersist(ClassMetadata $class, $document)

Invokes postPersist callbacks and events for given document cascading them to embedded documents as well.

Parameters

ClassMetadata $class
$document

postRemove(ClassMetadata $class, $document)

Invokes postRemove callbacks and events for given document.

Parameters

ClassMetadata $class
$document

postUpdate(ClassMetadata $class, $document)

Invokes postUpdate callbacks and events for given document. The same will be done for embedded documents owned by given document unless they were new in which case postPersist callbacks and events will be dispatched.

Parameters

ClassMetadata $class
$document

prePersist(ClassMetadata $class, $document)

Invokes prePersist callbacks and events for given document.

Parameters

ClassMetadata $class
$document

preRemove(ClassMetadata $class, $document)

Invokes prePersist callbacks and events for given document.

Parameters

ClassMetadata $class
$document

preUpdate(ClassMetadata $class, $document)

Invokes preUpdate callbacks and events for given document cascading them to embedded documents as well.

Parameters

ClassMetadata $class
$document