Skip to content
Snippets Groups Projects
Commit 75861cca authored by jaapjansma's avatar jaapjansma
Browse files

update

parent bcdc7e32
No related branches found
No related tags found
No related merge requests found
......@@ -215,5 +215,24 @@ class CombinedSqlDataFlow extends SqlDataFlow implements MultipleSourceDataFlows
return $this->primary_table_alias;
}
/**
* @param \Civi\DataProcessor\DataFlow\SqlDataFlow\WhereClauseInterface $clause
*
* @return \Civi\DataProcessor\DataFlow\SqlDataFlow
*/
public function removeWhereClause(SqlDataFlow\WhereClauseInterface $clause) {
foreach($this->whereClauses as $i => $c) {
if ($c->getWhereClause() == $clause->getWhereClause()) {
unset($this->whereClauses[$i]);
}
}
foreach($this->sourceDataFlowDescriptions as $sourceDataFlowDescription) {
if ($sourceDataFlowDescription->getDataFlow() instanceof SqlDataFlow) {
$sourceDataFlowDescription->getDataFlow()->removeWhereClause($clause);
}
}
return $this;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment