示例#1
0
 /**
  * 直接发起默认数据库请求
  * 
  * @return int 删除操作影响行数
  */
 public function query()
 {
     $stmt = parent::query();
     return $stmt->rowCount();
 }
示例#2
0
 /**
  * 直接发起默认数据库请求
  *
  * @return int 最后一个插入操作的ID
  */
 public function query()
 {
     $this->statment = parent::query();
     return $this->adapter->getConnection()->lastInsertId();
 }