Doctrine


Doctrine\ORM\Event\PreUpdateEventArgs
/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 15

Class PreUpdateEventArgs

Class:PreUpdateEventArgs - Superclass: LifecycleEventArgs
Class:LifecycleEventArgs - Superclass: Doctrine
Doctrine
⌊ LifecycleEventArgs
⌊ PreUpdateEventArgs

public class PreUpdateEventArgs
extends LifecycleEventArgs

Class that holds event arguments for a preInsert/preUpdate event.

Author:
Roman Borschel
Benjamin Eberlei
Since:
2.0

Constructor Summary

PreUpdateEventArgs(object entity, EntityManager em, array changeSet)

Method Summary
void

getEntityChangeSet()

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

Constructor Detail

/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 28

PreUpdateEventArgs

public PreUpdateEventArgs(object entity, EntityManager em, array changeSet)


Method Detail

/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 34

getEntityChangeSet

public void getEntityChangeSet()

/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 68

getNewValue

public mixed getNewValue(string field)

Get the new value of the changeset of the changed field.


/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 55

getOldValue

public mixed getOldValue(string field)

Get the old value of the changeset of the changed field.


/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 44

hasChangedField

public bool hasChangedField(mixed field)

Field has a changeset?


/Doctrine/ORM/Event/PreUpdateEventArgs.php at line 81

setNewValue

public void setNewValue(string field, mixed value)

Set the new value of this field.


Doctrine