2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
|
|
|
// grouptable doesn't extend Doctrine_Table -> Doctrine_Connection
|
|
|
|
// won't initialize grouptable when Doctrine_Connection->getTable('Group') is called
|
|
|
|
|
2007-09-03 19:32:30 +04:00
|
|
|
require_once('Entity.php');
|
|
|
|
|
2007-09-02 18:24:49 +04:00
|
|
|
class GroupTable { }
|
|
|
|
class Group extends Entity {
|
|
|
|
public function setUp() {
|
|
|
|
parent::setUp();
|
|
|
|
$this->hasMany('User', 'Groupuser.user_id');
|
|
|
|
// $this->option('inheritanceMap', array('type' => 1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|