return $stack->
getResultAsArray();
} private function skipField(Field
$field, EntityExistence
$existence): bool
{ if ($existence->
isChild() &&
$field->
is(Inherited::
class)) { // inherited field of a child is never required
return true;
} $create = !
$existence->
exists() ||
$existence->
childChangedToParent();
if ( (!
$field instanceof UpdatedAtField && !
$field instanceof CreatedByField && !
$field instanceof UpdatedByField
) && (!
$create || !
$field->
is(Required::
class)) ) { return true;
} return false;
}