if($association->getFlag(CascadeDelete::class)){ $associationViolations[$definition->getClass()][] = sprintf( 'Remove cascade delete in definition %s association: %s. Many to one association should not have a cascade delete', $definition->getClass(), $association->getPropertyName() ); }
/**
* Adds a left join with a sub-select to the query that results in the entity version requested in the context or the
* live version if that version does not exist.
*
* @param string $root e.g. "document"
* @param string $alias e.g. "document.order"
* @param string $source e.g. "document.order_id
* @param string $referenceColumn e.g. "id" (for the order)
*/