Esempio n. 1
0
 /**
  * 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());
 }
Esempio n. 2
0
 /**
  * Delete records
  * 
  * @param   string|array    $tables (optional)
  * 
  * @return  int
  */
 public function delete($tables = array())
 {
     parent::delete($tables);
     return $this->connection->count((string) $this, $this->compiler->getParams());
 }
Esempio n. 3
0
 /**
  * @param   array   $columns
  * 
  * @return  int
  */
 public function set(array $columns)
 {
     parent::set($columns);
     $compiler = $this->connection->getCompiler();
     return $this->connection->count($compiler->update($this->sql), $compiler->getParams());
 }
Esempio n. 4
0
 /**
  * @param   array   $columns
  * 
  * @return  int
  */
 public function set(array $columns)
 {
     parent::set($columns);
     return $this->connection->count((string) $this, $this->compiler->getParams());
 }