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

21 lines
567 B
PHP

<?php
class QueryTest_User extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('username as username', 'string', 50,
array('notnull'));
$this->hasColumn('visibleRankId', 'integer', 4);
}
/**
* Runtime definition of the relationships to other entities.
*/
public function setUp()
{
$this->hasOne('QueryTest_Rank as visibleRank', 'QueryTest_User.visibleRankId');
$this->hasMany('QueryTest_Rank as ranks', 'QueryTest_UserRank.rankId');
}
}