src/Tao/Database/Model.php
public function update(array $data, $primaryKey)
    {
        $this->normalizeDataColumns($data);

        $this->setSearchIndexableData($data);

        return $this->app['db']->update($this->getTable(), $data, [ $this->getPrimaryKey() => $primaryKey]);
    }
public function update(array $data, $primaryKey)
    {
        $this->normalizeDataColumns($data);

        $this->setSearchIndexableData($data);

        return $this->app['db']->update($this->getTable(), $data, [ $this->getPrimaryKey() => $primaryKey]);
    }
public function update ( array $ data , $ primaryKey ) { $ this -> normalizeDataColumns ( $ data ) ; $ this -> setSearchIndexableData ( $ data ) ; return $ this -> app [ 'db' ] -> update ( $ this -> getTable ( ) , $ data , [ $ this -> getPrimaryKey ( ) => $ primaryKey ] ) ; }
Update an entry.

@param array $data
@param mixed $primaryKey
Update an entry .