Doctrine\Common\Persistence\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
{
- // members
- private ObjectManager $objectManager;
- private $entity;
- // methods
- public void __construct()
- public getEntity()
- public ObjectManager getObjectManager()
- // Inherited methods from EventArgs
- public static EventArgs getEmptyInstance()
Hierarchy
Members
private
- $entity —
- $objectManager — Doctrine\Common\Persistence\ObjectManager
Methods
public
- __construct() — Constructor
- getEntity() — Retrieve associated Entity.
- getObjectManager() — Retrieve associated ObjectManager.
Inherited from Doctrine\Common\EventArgs
public
- getEmptyInstance() — Gets the single, empty and immutable EventArgs instance.