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

16 lines
480 B
PHP
Raw Normal View History

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