CodeExplorer handleManyToManyAssociations example
public function resolvePrimaryKeyFromUpdatedBy(Config
$config, ?EntityDefinition
$definition, iterable
$record): iterable
{ if (!
$definition) { return $record;
} return $this->
resolvePrimaryKey( $config,
$definition,
$this->
handleManyToManyAssociations($config,
$definition,
$record) );
} private function resolvePrimaryKey(Config
$config, EntityDefinition
$definition, iterable
$record): iterable
{ $updatedBy =
$config->
getUpdateBy()->
get($definition->
getEntityName());
if (!
$updatedBy) { return $record;
}