MongoDBReferenceListener
in package
implements
EventSubscriber
Reference Listener populates identities for stored references
Interfaces, Classes, Traits and Enums
- EventSubscriber
- An EventSubscriber knows himself what events he is interested in.
Table of Contents
- $referenceRepository : ReferenceRepository
- __construct() : mixed
- Initialize listener
- getSubscribedEvents() : array<string|int, string>
- Returns an array of events this subscriber wants to listen to.
- postPersist() : mixed
- Populates identities for stored references
Properties
$referenceRepository
private
ReferenceRepository
$referenceRepository
Methods
__construct()
Initialize listener
public
__construct(ReferenceRepository $referenceRepository) : mixed
Parameters
- $referenceRepository : ReferenceRepository
Return values
mixed —getSubscribedEvents()
Returns an array of events this subscriber wants to listen to.
public
getSubscribedEvents() : array<string|int, string>
Return values
array<string|int, string> —postPersist()
Populates identities for stored references
public
postPersist(LifecycleEventArgs $args) : mixed
Parameters
- $args : LifecycleEventArgs