Doctrine\ORM\Event\OnClearEventArgs
Provides event arguments for the onClear event.
- Author: Roman Borschel <roman@code-factory.de>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
class OnClearEventArgs
extends EventArgs
{
- // members
- private EntityManager $em;
- private string $entityClass;
- // methods
- public void __construct()
- public EntityManager getEntityManager()
- public string getEntityClass()
- public bool clearsAllEntities()
- // Inherited methods from EventArgs
- public static EventArgs getEmptyInstance()
Hierarchy
Extends
Members
private
- $em — \Doctrine\ORM\EntityManager
- $entityClass — string
Methods
public
- __construct() — Constructor.
- clearsAllEntities() — Check if event clears all entities.
- getEntityClass() — Name of the entity class that is cleared, or empty if all are cleared.
- getEntityManager() — Retrieve associated EntityManager.
Inherited from Doctrine\Common\EventArgs
public
- getEmptyInstance() — Gets the single, empty and immutable EventArgs instance.