1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/ORM_TestItem.php

14 lines
368 B
PHP

<?php
class ORM_TestItem extends Doctrine_Record {
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');
}
}