Property | Type | Description | |
---|---|---|---|
$dispatcher | |||
$events | array |
Method | Description | |
---|---|---|
__construct ( $dispatcher ) | ||
getSubscribedEvents ( ) : array | Get subscribed doctrine orm events. | |
postPersist ( Doctrine\ORM\Event\LifecycleEventArgs $args ) : void | Dispatch entity.create on postPersist. | |
postUpdate ( Doctrine\ORM\Event\LifecycleEventArgs $args ) : void | Dispatch entity.update on postUpdate. | |
preRemove ( Doctrine\ORM\Event\LifecycleEventArgs $args ) : void | Dispatch entity.delete on preRemove. | |
preUpdate ( Doctrine\ORM\Event\PreUpdateEventArgs $args ) : void | Dispatch entity.update on preUpdate. |
Method | Description | |
---|---|---|
getEntityId ( object $entity, |
Get entity id. | |
getEntityName ( object $entity ) : string | Get entity name. | |
getEntityProperties ( $entity, |
Get entity properties. | |
getEntityTitle ( object $entity ) : string | Get entity title. |
public getSubscribedEvents ( ) : array | ||
return | array |
public postPersist ( Doctrine\ORM\Event\LifecycleEventArgs $args ) : void | ||
$args | Doctrine\ORM\Event\LifecycleEventArgs | |
return | void |
public postUpdate ( Doctrine\ORM\Event\LifecycleEventArgs $args ) : void | ||
$args | Doctrine\ORM\Event\LifecycleEventArgs | |
return | void |