Doctrine\ORM\Event\LifecycleEventArgs
Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions of entities.
- Author: Roman Borschel <roman@code-factory.de>
Synopsis
class LifecycleEventArgs
extends EventArgs
{
- // methods
- public void __construct()
- public getEntity()
- public EntityManager getEntityManager()
- // Inherited methods from EventArgs
- public static EventArgs getEmptyInstance()
Hierarchy
Members
private
- $em — \Doctrine\ORM\EntityManager
- $entity —
Methods
public
- __construct() — Constructor
- getEntity() — Retrieve associated Entity.
- getEntityManager() — Retrieve associated EntityManager.
Inherited from Doctrine\Common\EventArgs
public
- getEmptyInstance() — Gets the single, empty and immutable EventArgs instance.