public function AddParentPredicateToRequest(Relational\Request $Request, array $ParentRows)
{
$ParentTable = $this->GetParentTable();
if ($ParentTable) {
$Request->AddTable($ParentTable);
}
$Request->AddColumns($this->GetReferencedColumns());
$MatchExpressions = [];
foreach ($ParentRows as $ParentRow) {
$ReferencedKey = $this->MapParentRowToRelatedKey($this->ForeignKey, $ParentRow);
$MatchExpressions[] = new Expressions\MatchesColumnDataExpression($ReferencedKey);
}
$Request->GetCriterion()->AddPredicateExpression(Expressions\Expression::CompoundBoolean($MatchExpressions, Expressions\Operators\Binary::LogicalOr));
}