Class:PreUpdateEventArgs - Superclass: LifecycleEventArgs Class:LifecycleEventArgs - Superclass: Doctrine Doctrine
⌊ LifecycleEventArgs
⌊ PreUpdateEventArgs
public class PreUpdateEventArgs
extends LifecycleEventArgs
Constructor Summary | |
---|---|
PreUpdateEventArgs(object entity, EntityManager em, array changeSet) |
Method Summary | |
---|---|
void | |
mixed | getNewValue(string field) Get the new value of the changeset of the changed field. |
mixed | getOldValue(string field) Get the old value of the changeset of the changed field. |
bool | hasChangedField(mixed field) Field has a changeset? |
void | setNewValue(string field, mixed value) Set the new value of this field. |
Methods inherited from Doctrine\ORM\Event\LifecycleEventArgs | |
---|---|
getEntity, getEntityManager |
public PreUpdateEventArgs(object entity, EntityManager em, array changeSet)
public void getEntityChangeSet()
public mixed getNewValue(string field)
Get the new value of the changeset of the changed field.
public mixed getOldValue(string field)
Get the old value of the changeset of the changed field.
public bool hasChangedField(mixed field)
Field has a changeset?
public void setNewValue(string field, mixed value)
Set the new value of this field.
Class that holds event arguments for a preInsert/preUpdate event.