Esempio n. 1
0
 public function newRecord()
 {
     $r = new Record($this);
     $r->setColumns($this->schema);
     return $r;
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function setSequenceValue()
 {
     $table = new Table();
     $schema = ['id' => ['int', 'sequence'], 'name' => ['varchar'], 'created' => ['datetime']];
     $record = new Record($table);
     $record->setColumns($schema);
     $value = 999;
     $record->setSequenceValue($value);
     $this->assertSame($value, $record->id, '-> sets the passed value to the column that has "sequence" option.');
 }