protected function setUp() { $this->useModelSet('standard'); parent::setUp(); $b = $this->dm->getBinding(); $this->rid = $b->command('INSERT INTO City set name="Rome"')['result'][0]['@rid']; }
public function setup() { $this->useModelSet('standard'); parent::setUp(); $this->postId = $this->getClassId('Post'); $this->addressId = $this->getClassId('Address'); $this->profileId = $this->getClassId('Profile'); // load some data $sql = ['let r1 = INSERT INTO Comment SET body="hi"', 'let r2 = INSERT INTO Comment SET body="hello"', 'let r3 = INSERT INTO Post SET id=10', 'UPDATE $r3 ADD comments = $r1, comments = $r2', 'let r4 = INSERT INTO City SET name="Rome"', 'let r5 = INSERT INTO Address SET street="Street", city=$r4', 'return { "n1": $r1.@rid, "n2": $r2 }']; $this->dm->getBinding()->sqlBatch($sql, false); }
protected function setUp() { $this->useModelSet('standard'); parent::setUp(); }
protected function setUp() { $this->useModelSet('embedded'); parent::setUp(); }
protected function setUp() { $this->useModelSet('graph'); parent::setUp(); }