// plugins can add a ManyToOne where they define that the local/storage column is the primary and the reference is the foreign key
// in this case we have a reversed many to one association configuration
}elseif($isPrimary){ $id = $parameters->getContext()->get($parameters->getDefinition()->getEntityName(), $fkField->getPropertyName()); }else{ $id = Uuid::randomHex(); $value[$referenceField->getPropertyName()] = $id; }
// in case of a reversed many to one configuration we have to return nothing, otherwise the primary key would be overwritten
if(!$isPrimary){ $data[$fkField->getPropertyName()] = $id; }