private function PreUpdateEventArgs::assertValidField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php \Doctrine\Common\Persistence\Event\PreUpdateEventArgs::assertValidField()
Asserts the field exists in changeset.
Parameters
string $field:
Return value
void
Throws
\InvalidArgumentException
3 calls to PreUpdateEventArgs::assertValidField()
- PreUpdateEventArgs::getNewValue in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Event/ PreUpdateEventArgs.php - Gets the new value of the changeset of the changed field.
- PreUpdateEventArgs::getOldValue in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Event/ PreUpdateEventArgs.php - Gets the old value of the changeset of the changed field.
- PreUpdateEventArgs::setNewValue in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Event/ PreUpdateEventArgs.php - Sets the new value of this field.
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Event/ PreUpdateEventArgs.php, line 127
Class
- PreUpdateEventArgs
- Class that holds event arguments for a preUpdate event.
Namespace
Doctrine\Common\Persistence\EventCode
private function assertValidField($field) {
if (!isset($this->entityChangeSet[$field])) {
throw new \InvalidArgumentException(sprintf('Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.', $field, get_class($this
->getEntity())));
}
}