protected function select($method, $extraQuery = array()) { if ($this->getActionName() == 'query') { $res = parent::select($method); } else { $db =& $this->getDB(); $res = $db->select($this->mTable, $this->mFields, $this->mWhere, $method, $this->mOptions); } return $res; }