class PreUpdateEventArgs extends LifecycleEventArgs (View source)

Class that holds event arguments for a preUpdate event.

Methods

__construct($entity, ObjectManager $objectManager, array $changeSet)

No description

object
getEntity() deprecated

Retrieves the associated entity.

object
getObject()

Retrieves the associated object.

getObjectManager()

Retrieves the associated ObjectManager.

mixed[][]
getEntityChangeSet()

Retrieves the entity changeset.

bool
hasChangedField(string $field)

Checks if field has a changeset.

mixed
getOldValue(string $field)

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

mixed
getNewValue(string $field)

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

void
setNewValue(string $field, mixed $value)

Sets the new value of this field.

Details

__construct($entity, ObjectManager $objectManager, array $changeSet)

Parameters

$entity
ObjectManager $objectManager
array $changeSet

object getEntity() deprecated

deprecated

Retrieves the associated entity.

Return Value

object

object getObject()

Retrieves the associated object.

Return Value

object

ObjectManager getObjectManager()

Retrieves the associated ObjectManager.

Return Value

ObjectManager

mixed[][] getEntityChangeSet()

Retrieves the entity changeset.

Return Value

mixed[][]

bool hasChangedField(string $field)

Checks if field has a changeset.

Parameters

string $field

Return Value

bool

mixed getOldValue(string $field)

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

Parameters

string $field

Return Value

mixed

mixed getNewValue(string $field)

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

Parameters

string $field

Return Value

mixed

void setNewValue(string $field, mixed $value)

Sets the new value of this field.

Parameters

string $field
mixed $value

Return Value

void