public function PreUpdateEventArgs::getOldValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php \Doctrine\Common\Persistence\Event\PreUpdateEventArgs::getOldValue()
Gets the old 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 82
Class
- PreUpdateEventArgs
- Class that holds event arguments for a preUpdate event.
Namespace
Doctrine\Common\Persistence\EventCode
public function getOldValue($field) {
$this
->assertValidField($field);
return $this->entityChangeSet[$field][0];
}