1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/models/mmrGroup_C.php

16 lines
480 B
PHP

<?php
class mmrGroup_C extends Doctrine_Record
{
public function setUp()
{
$this->hasMany('mmrUser_C', array('local' => 'group_id',
'foreign' => 'user_id',
'refClass' => 'mmrGroupUser_C'));
}
public function setTableDefinition()
{
$this->hasColumn('g_id as id', 'string', 30, array('primary' => true));
$this->hasColumn('name', 'string', 30);
}
}