if (!
$this->
hasCustomFieldSupport(__METHOD__
)) { return;
} foreach ($values as $id =>
$value) { $element =
$this->
get($id);
if ($element === null
) { continue;
} // @phpstan-ignore-next-line not possible to typehint or docblock the trait
$element->
changeCustomFields($value);
} } protected function getExpectedClass(): string
{ return Entity::
class;
} private function hasCustomFieldSupport(string
$methodName): bool
{ $first =
$this->
first();