Doctrine\ORM\Event\PreUpdateEventArgs
Class that holds event arguments for a preInsert/preUpdate event.
- Author: Guilherme Blanco <guilehrmeblanco@hotmail.com>
Synopsis
class PreUpdateEventArgs
extends LifecycleEventArgs
{
- // members
- private array $entityChangeSet;
- // methods
- public void __construct()
- public array getEntityChangeSet()
- public boolean hasChangedField()
- public mixed getOldValue()
- public mixed getNewValue()
- public void setNewValue()
- private void assertValidField()
- // Inherited methods from LifecycleEventArgs
- public void __construct()
- public getEntity()
- public EntityManager getEntityManager()
- // Inherited methods from EventArgs
- public static EventArgs getEmptyInstance()
Hierarchy
Members
private
- $entityChangeSet — array
Methods
private
- assertValidField() — Assert the field exists in changeset.
public
- __construct() — Constructor.
- getEntityChangeSet() — Retrieve entity changeset.
- getNewValue() — Get the new value of the changeset of the changed field.
- getOldValue() — Get the old value of the changeset of the changed field.
- hasChangedField() — Check if field has a changeset.
- setNewValue() — Set the new value of this field.
Inherited from Doctrine\ORM\Event\LifecycleEventArgs
public
- getEntity() — Retrieve associated Entity.
- getEntityManager() — Retrieve associated EntityManager.
Inherited from Doctrine\Common\EventArgs
public
- getEmptyInstance() — Gets the single, empty and immutable EventArgs instance.