1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests_old/models/QueryTest_Entry.php
2008-02-08 17:41:01 +00:00

16 lines
435 B
PHP

<?php
class QueryTest_Entry extends Doctrine_Record
{
/**
* Table structure.
*/
public static function initMetadata($class)
{
$class->setColumn('authorId', 'integer', 4,
array('notnull'));
$class->setColumn('date', 'integer', 4,
array('notnull'));
$class->hasOne('QueryTest_User as author', array('local' => 'authorId', 'foreign' => 'id'));
}
}