1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests_old/models/QueryTest_Entry.php

16 lines
435 B
PHP
Raw Normal View History

<?php
class QueryTest_Entry extends Doctrine_Entity
{
/**
* 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'));
}
}