if(!$association instanceof ManyToManyAssociationField){ thrownew \RuntimeException(sprintf('Can not find association by property name %s', $field->getAssociationName())); } $parameters = ['ids' => $bytes];
if(!$fk){ $violations[$mapping->getClass()][] = sprintf('Missing field %s in definition %s', $column, $mapping->getClass()); } if($fk && !$fk->is(PrimaryKey::class)){ $violations[$mapping->getClass()][] = sprintf('Foreign key field %s in definition %s is not part of the primary key', $column, $mapping->getClass()); } if($fk && !$fk instanceof FkField){ $violations[$mapping->getClass()][] = sprintf('Field %s in definition %s has to be defined as FkField', $column, $mapping->getClass()); }
// the ids are extracted in the entity hydrator (see: \Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityHydrator::extractManyToManyIds)
$this->loadManyToManyOverExtension($associationCriteria, $association, $context, $collection, $partial); }