$field =
$parent->
getFields()->
get($field->
getPropertyName());
return $field->
is(Inherited::
class);
} protected function validateIfNeeded(Field
$field, EntityExistence
$existence, KeyValuePair
$data, WriteParameterBag
$parameters): void
{ if (!
$this->
requiresValidation($field,
$existence,
$data->
getValue(),
$parameters)) { return;
} $constraints =
$this->
getCachedConstraints($field);
$this->
validate($constraints,
$data,
$parameters->
getPath());
} /**
* @return Constraint[]
*/
protected function getConstraints(Field
$field): array
{ return [];
}