示例#1
0
文件: Delete.php 项目: opis/database
 /**
  * Delete records
  * 
  * @param   string|array    $tables (optional)
  * 
  * @return  int
  */
 public function delete($tables = array())
 {
     parent::delete($tables);
     $compiler = $this->connection->getCompiler();
     return $this->connection->count($compiler->delete($this->sql), $compiler->getParams());
 }
示例#2
0
 public function delete($tables = array())
 {
     parent::delete($tables);
     return $this->connection->count((string) $this, $this->compiler->getParams());
 }