if($field->getOnDelete() === AssociationField::CASCADE){ thrownew \RuntimeException(\sprintf('Cascade delete and referencing core tables are not allowed, field %s', $field->getName())); }
if($field->isReverseRequired()){ thrownew \RuntimeException(\sprintf('Reverse required when referencing core tables is not allowed, field %s', $field->getName())); } } }