Exemple #1
0
 /**
  * @param   mixed   $value
  * @param   string  $operator
  * @param   bool    $iscolumn   (optional)
  *
  * @return  WhereCondition
  */
 protected function addCondition($value, $operator, $iscolumn = false)
 {
     if ($iscolumn && is_string($value)) {
         $value = function ($expr) use($value) {
             $expr->column($value);
         };
     }
     $this->whereClause->addCondition($this->column, $value, $operator, $this->separator);
     return $this->condition;
 }