2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
|
|
|
class Groupuser extends Doctrine_Record
|
|
|
|
{
|
|
|
|
public function setTableDefinition()
|
|
|
|
{
|
|
|
|
$this->hasColumn('added', 'integer');
|
2008-01-05 22:55:56 +03:00
|
|
|
$this->hasColumn('group_id', 'integer', null /*,array('primary' => true)*/);
|
|
|
|
$this->hasColumn('user_id', 'integer', null /*,array('primary' => true)*/);
|
2007-09-02 18:24:49 +04:00
|
|
|
}
|
2007-09-20 19:02:07 +04:00
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
$this->hasOne('Group', array('local' => 'group_id', 'foreign' => 'id'));
|
|
|
|
$this->hasOne('User', array('local' => 'user_id', 'foreign' => 'id'));
|
|
|
|
}
|
2007-09-02 18:24:49 +04:00
|
|
|
}
|