protected function AppendCriterion(QueryBuilder $QueryBuilder, Relational\Criterion $Criterion) { if ($Criterion->IsConstrained()) { $QueryBuilder->Append('WHERE '); } $QueryBuilder->AppendCriterion($Criterion); }