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

17 lines
452 B
PHP
Raw Normal View History

<?php
class Groupuser extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('added', 'integer');
$this->hasColumn('group_id', 'integer');
$this->hasColumn('user_id', 'integer');
}
public function setUp()
{
$this->hasOne('Group', array('local' => 'group_id', 'foreign' => 'id'));
$this->hasOne('User', array('local' => 'user_id', 'foreign' => 'id'));
}
}