Entity

Entity event subscriber. Delegates selected Doctrine lifecycle events to Omeka events.
implements Doctrine\Common\EventSubscriber
Methods Summary
public
# __construct( Zend\EventManager\EventManagerInterface $events )
Set the service locator.
public
public
# preRemove( Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Trigger the entity.remove.pre event.
public
# postRemove( Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Trigger the entity.remove.post event.
public
# prePersist( Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Trigger the entity.persist.pre event.
public
# postPersist( Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Trigger the entity.persist.post event.
public
# preUpdate( Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Trigger the entity.update.pre event.
public
# postUpdate( Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Trigger the entity.update.post event.
protected
# trigger( string $eventName , Doctrine\Common\Persistence\Event\LifecycleEventArgs $args )
Compose and trigger the event.
Properties Summary
protected Zend\EventManager\EventManagerInterface $events
# NULL