public final function MapParentKeysToRelatedRows(array $ParentRows, array $RelatedRows)
{
$MappedRelatedRows = [];
if (count($ParentRows) === 1) {
$MappedRelatedRows[key($ParentRows)] = $RelatedRows;
} else {
$this->GroupRelatedRowsByParentKeys($MappedRelatedRows, $this->GetForeignKey(), $ParentRows, $RelatedRows);
}
return $MappedRelatedRows;
}