} if ($association->
getAutoload() &&
$reverseSide->
getAutoload()) { $associationViolations[$definition->
getClass()][] =
sprintf( 'Remove autoload flag in definition %s association: %s. One to One association should only have one side defined as autoload, otherwise it leads to endless loops inside the DAL.',
$definition->
getClass(),
$association->
getPropertyName() );
} $versionError =
$this->
validateVersionAwareness($reference,
$definition,
$association);
if ($versionError) { $associationViolations[$definition->
getClass()][] =
$versionError;
} return $associationViolations;
} /**
* @return array<string, mixed>
*/
private function validateManyToOne(EntityDefinition
$definition, ManyToOneAssociationField
$association): array
{