public function updateEntity(EntityInterface $entity)
    {
        $update = $this->getSql()->update();
        $update->set($this->getHydrator()->extract($entity));
        $update->where->equalTo($this->getPrimaryKey(), $entity->getIdentifier());

        try {
            $this->updateWith($update);
        } catch (RuntimeException $e) {
            return false;
        }

        return true;
    }
public function updateEntity(EntityInterface $entity)
    {
        $update = $this->getSql()->update();
        $update->set($this->getHydrator()->extract($entity));
        $update->where->equalTo($this->getPrimaryKey(), $entity->getIdentifier());

        try {
            $this->updateWith($update);
        } catch (RuntimeException $e) {
            return false;
        }

        return true;
    }
public function updateEntity ( EntityInterface $ entity ) { $ update = $ this -> getSql ( ) -> update ( ) ; $ update -> set ( $ this -> getHydrator ( ) -> extract ( $ entity ) ) ; $ update -> where -> equalTo ( $ this -> getPrimaryKey ( ) , $ entity -> getIdentifier ( ) ) ; try { $ this -> updateWith ( $ update ) ; } catch ( RuntimeException $ e ) { return false ; } return true ; }
Update an existing entity

@param EntityInterface $entity

@return bool
Update an existing entity