Assert the field exists in changeset.
string $field:
\InvalidArgumentException
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())));
}
}