You are here

public function PreUpdateEventArgs::setNewValue in Plug 7

Sets the new value of this field.

Parameters

string $field:

mixed $value:

Return value

void

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php, line 111

Class

PreUpdateEventArgs
Class that holds event arguments for a preUpdate event.

Namespace

Doctrine\Common\Persistence\Event

Code

public function setNewValue($field, $value) {
  $this
    ->assertValidField($field);
  $this->entityChangeSet[$field][1] = $value;
}