src/Neevo/Row.php
public function update(){
		if($this->frozen)
			throw new NeevoException('Update disabled - cannot get primary key or table.');

		if(!empty($this->modified)){
			return Statement::createUpdate($this->connection, $this->table,	$this->modified)
					->where($this->primary, $this->data[$this->primary])->limit(1)->affectedRows();
		}
		return 0;
	}
public function update(){
		if($this->frozen)
			throw new NeevoException('Update disabled - cannot get primary key or table.');

		if(!empty($this->modified)){
			return Statement::createUpdate($this->connection, $this->table,	$this->modified)
					->where($this->primary, $this->data[$this->primary])->limit(1)->affectedRows();
		}
		return 0;
	}
public function update ( ) { if ( $ this -> frozen ) throw new NeevoException ( 'Update disabled - cannot get primary key or table.' ) ; if ( ! empty ( $ this -> modified ) ) { return Statement :: createUpdate ( $ this -> connection , $ this -> table , $ this -> modified ) -> where ( $ this -> primary , $ this -> data [ $ this -> primary ] ) -> limit ( 1 ) -> affectedRows ( ) ; } return 0 ; }
Updates corresponding database row if available.
@throws NeevoException
@return int Number of affected rows.
Updates corresponding database row if available .