public function addCondition($condition) { if ($this->conditionCount == 0) { $this->query->where($condition); } else { $this->query->addWhere($condition); } $this->conditionCount += 1; }
public function addCondition($condition) { if ($this->conditionCount == 0) { $this->query->where($condition); } else { $this->query->addWhere($condition); } $this->conditionCount += 1; }