예제 #1
0
파일: Update.php 프로젝트: opis/database
 /**
  * @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());
 }
예제 #2
0
 /**
  * @param   array   $columns
  * 
  * @return  int
  */
 public function set(array $columns)
 {
     parent::set($columns);
     return $this->connection->count((string) $this, $this->compiler->getParams());
 }