Example #1
0
 /**
  * @param null $primaryKey
  * @param null $primaryKeyVal
  * @return mixed
  */
 public function delete($primaryKey = null, $primaryKeyVal = null)
 {
     if ($primaryKey && $primaryKeyVal) {
         $this->query->delete()->where($primaryKey, $primaryKeyVal);
         $status = $this->execute(false);
         $this->clear();
         return $status;
     }
     $this->query->delete();
     return $this;
 }