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

16 lines
516 B
PHP

<?php
class ORM_TestEntry extends Doctrine_Entity {
public function setTableDefinition() {
$this->setTableName('test_entries');
$this->hasColumn('id', 'integer', 11, 'autoincrement|primary');
$this->hasColumn('name', 'string', 255);
$this->hasColumn('stamp', 'timestamp');
$this->hasColumn('amount', 'float');
$this->hasColumn('itemID', 'integer');
}
public function setUp() {
$this->hasOne('ORM_TestItem', 'ORM_TestEntry.itemID');
}
}