2007-09-02 14:24:49 +00:00
|
|
|
<?php
|
2008-05-13 21:20:34 +00:00
|
|
|
class ORM_TestItem extends Doctrine_Entity {
|
2007-09-02 14:24:49 +00:00
|
|
|
public function setTableDefinition() {
|
|
|
|
$this->setTableName('test_items');
|
|
|
|
$this->hasColumn('id', 'integer', 11, 'autoincrement|primary');
|
|
|
|
$this->hasColumn('name', 'string', 255);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setUp() {
|
|
|
|
|
|
|
|
$this->hasOne('ORM_TestEntry', 'ORM_TestEntry.itemID');
|
|
|
|
}
|
|
|
|
}
|