Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function run($as = \PDO::FETCH_CLASS)
 {
     $res = $this->db->rawQuery($this->getQuery(), $this->params, $as, $this->objectName);
     if ($this->single) {
         return !empty($res[0]) ? $res[0] : false;
     } else {
         return $res;
     }
 }