Doctrine\OrientDB\Query\Query::update PHP 메소드

update() 공개 메소드

Changes the internal command to an UPDATE, setting the class to update.
public update ( string $class ) : Command
$class string
리턴 Command
    public function update($class)
    {
        $commandClass = $this->getCommandClass('update');
        $this->command = new $commandClass($class);
        return $this->command;
    }

Usage Example

예제 #1
0
 public function testHydrationOfALongProperty()
 {
     $manager = $this->createManager();
     $query = new Query();
     $query->update('Profile')->set(array('hash' => 2937480))->where('@rid = ?', '#' . $this->getClassId('Profile') . ':0');
     $manager->execute($query);
     $neoProfile = $manager->find("#" . $this->getClassId('Profile') . ":0");
     $this->assertInternalType('integer', $neoProfile->hash);
 }
All Usage Examples Of Doctrine\OrientDB\Query\Query::update