Exemplo n.º 1
0
 /**
  * @param      $expression
  * @param null $data
  *
  * @return $this
  */
 public function where($expression, $data = null)
 {
     if (null == $this->_where) {
         $this->_where = new SqlCondition($this->_connection);
     }
     $this->_where->where($expression, $data);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param $expression
  * @param $data
  *
  * @return $this
  */
 public function orHaving($expression, $data)
 {
     if (null == $this->_having) {
         $this->_having = new SqlCondition($this->_connection);
     }
     $this->_having->where($expression, $data);
     return $this;
 }