public function addParentResults(array
$writeResults, array
$parents): array
{ foreach ($parents as $entity =>
$primaryKeys) { $primaryKeys =
array_unique($primaryKeys);
if (!
isset($writeResults[$entity])) { $writeResults[$entity] =
[];
} foreach ($primaryKeys as $primaryKey) { if ($this->
hasResult($entity,
$primaryKey,
$writeResults)) { continue;
} $writeResults[$entity][] =
new EntityWriteResult($primaryKey,
[],
$entity, EntityWriteResult::OPERATION_UPDATE
);
} } return $writeResults;
} public function addDeleteResults(array
$identifiers, array
$notFound, array
$parents): WriteResult
{