src/ActiveDoctrine/Entity/Entity.php
public function update()
    {
        $this->callEvent('update');

        if (empty($this->modified)) {
            return;
        }
        $values = array_intersect_key($this->values, $this->modified);
        $where = [static::$primary_key => $this->getPrimaryKey()];
        $this->connection->update(static::$table, $values, $where, static::$types);
        $this->setStored();
    }
public function update()
    {
        $this->callEvent('update');

        if (empty($this->modified)) {
            return;
        }
        $values = array_intersect_key($this->values, $this->modified);
        $where = [static::$primary_key => $this->getPrimaryKey()];
        $this->connection->update(static::$table, $values, $where, static::$types);
        $this->setStored();
    }
public function update ( ) { $ this -> callEvent ( 'update' ) ; if ( empty ( $ this -> modified ) ) { return ; } $ values = array_intersect_key ( $ this -> values , $ this -> modified ) ; $ where = [ static :: $ primary_key => $ this -> getPrimaryKey ( ) ] ; $ this -> connection -> update ( static :: $ table , $ values , $ where , static :: $ types ) ; $ this -> setStored ( ) ; }
Update this entity in the database.
Update this entity in the database .