Exemplo n.º 1
0
 /**
  * @param string $table
  * @param array  $what
  * @param string $where
  *
  * @return \Doctrine\DBAL\Driver\Statement|int
  */
 protected function updateTable($table, $what, $where)
 {
     $query = $this->conn->createQueryBuilder();
     $query->update($table);
     foreach ($what as $field => $value) {
         $query->set($field, $value);
     }
     $query->where($where);
     return $query->execute();
 }