Beispiel #1
0
 public function testRef()
 {
     $rows = $this->table->find(null, "id desc", 2);
     $reft = new Table("reftest");
     $refs = new Rowset($reft);
     $refs->append($rows->seek(0)->current()->allOf("reftest")->current());
     $refs->append($rows->seek(1)->current()->allOf("reftest")->current());
     $refs->seek(0)->current()->test = $rows->seek(1)->current();
     $refs->seek(1)->current()->test = $rows->seek(0)->current();
     $refs->update();
 }
Beispiel #2
0
 public function testDeleteFail()
 {
     $this->setExpectedException("Exception");
     $rowset = new Rowset($this->table);
     $rowset->append(new Row($this->table, array("xx" => 0)))->delete();
 }