public function update($table, array $data, array $conditions = [], $types = [])
    {
        return $this->getDisconnectRetry()->run(function () use ($table, $data, $conditions, $types) {
            return $this->newQuery()->update($table)
                ->set($data, $types)
                ->where($conditions, $types)
                ->execute();
        });
    }
public function update($table, array $data, array $conditions = [], $types = [])
    {
        return $this->getDisconnectRetry()->run(function () use ($table, $data, $conditions, $types) {
            return $this->newQuery()->update($table)
                ->set($data, $types)
                ->where($conditions, $types)
                ->execute();
        });
    }
public function update ( $ table , array $ data , array $ conditions = [ ] , $ types = [ ] ) { return $ this -> getDisconnectRetry ( ) -> run ( function ( ) use ( $ table , $ data , $ conditions , $ types ) { return $ this -> newQuery ( ) -> update ( $ table ) -> set ( $ data , $ types ) -> where ( $ conditions , $ types ) -> execute ( ) ; } ) ; }
Executes an UPDATE statement on the specified table.

@param string $table the table to update rows from
@param array $data values to be updated
@param array $conditions conditions to be set for update statement
@param array $types list of associative array containing the types to be used for casting
@return \Cake\Database\StatementInterface
Executes an UPDATE statement on the specified table .