Is it possible to add the second parameter to mergeWith function ?
public function mergeWith($criteria, $logicElement = 'AND') { ... if($this->condition!==$criteria->condition) { if($this->condition==='') $this->condition=$criteria->condition; else if($criteria->condition!=='') $this->condition="({$this->condition}) $logicElement ({$criteria->condition})"; } ... if($this->having!==$criteria->having) { if($this->having==='') $this->having=$criteria->having; else if($criteria->having!=='') $this->having="({$this->having}) $logicElement ({$criteria->having})"; } }
Maybe someone can offer different solution?
Thanks.