* modified the tests
[vsc.git] / _tests / models / dummytable.class.php
blob74ddcb249363ce99a84a8b8ee312319372c06036
1 <?php
2 usingPackage ('models/foo');
3 usingPackage ('models/foo/fields');
5 class dummyTable extends fooEntityA {
6 protected $_name = 'dummy';
8 public function __construct () {
9 $this->id = new fooFieldInteger('id');
10 $this->id->setAutoIncrement (true);
12 $this->payload = new fooFieldVarChar ('payload');
13 $this->timestamp = new fooFieldDateTime ('ts');
15 $this->setPayload(2); // this is used later in the testGetter - if you modify here, modify the fooEntityTest
17 $this->setPrimaryKey ($this->id);