if (!
$isGeneric) { $associationViolations[$definition->
getClass()][] =
sprintf( 'Missing reference foreign key for column %s for definition association %s.%s',
$association->
getReferenceField(),
$definition->
getEntityName(),
$association->
getPropertyName() );
} } return $this->
validateForeignKeyOnDeleteBehaviour($definition,
$association,
$reference,
$associationViolations);
} /**
* @return array<int|string, mixed>
*/
private function validateManyToMany(EntityDefinition
$definition, ManyToManyAssociationField
$association): array
{ $reference =
$association->
getToManyReferenceDefinition();
$violations =
$this->
validateIsPlural($definition,
$association);
$violations =
$this->
validateSetterIsNotNull($definition,
$association,
$violations);