protected final function MapParentRowKeysToGroupedRelatedRows(array &$MappedRelatedRows, array $ParentRows, array $MapByColumns, array $GroupedRelatedRows)
{
$ParentDataHashKeyMap = $this->MakeHashedDataToKeyMap($ParentRows, $MapByColumns);
foreach ($ParentDataHashKeyMap as $HashedData => $ParentKey) {
if (isset($GroupedRelatedRows[$HashedData])) {
$MappedRelatedRows[$ParentKey] = $GroupedRelatedRows[$HashedData];
} else {
$MappedRelatedRows[$ParentKey] = [];
}
}
}