Beispiel #1
0
 /**
  * Set the WHERE clause
  *
  * @param  $where
  * @return Delete
  */
 public function where($where = null)
 {
     if (null !== $where) {
         if ($where instanceof Where) {
             $this->where = $where;
         } else {
             if (null === $this->where) {
                 $this->where = (new Where($this->sql))->add($where);
             } else {
                 $this->where->add($where);
             }
         }
     }
     if (null === $this->where) {
         $this->where = new Where($this->sql);
     }
     return $this;
 }