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

21 lines
571 B
PHP
Raw Normal View History

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