You are here

public function PreUpdateEventArgs::getNewValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php \Doctrine\Common\Persistence\Event\PreUpdateEventArgs::getNewValue()

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

Parameters

string $field:

Return value

mixed

File

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

Class

PreUpdateEventArgs
Class that holds event arguments for a preUpdate event.

Namespace

Doctrine\Common\Persistence\Event

Code

public function getNewValue($field) {
  $this
    ->assertValidField($field);
  return $this->entityChangeSet[$field][1];
}