1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/ORM_TestItem.php

14 lines
368 B
PHP
Raw Normal View History

<?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');
}
}