1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/models/Group.php
2008-02-08 17:41:01 +00:00

21 lines
462 B
PHP

<?php
require_once('Entity.php');
// grouptable doesn't extend Doctrine_Table -> Doctrine_Connection
// won't initialize grouptable when Doctrine_Connection->getTable('Group') is called
class GroupTable { }
class Group extends Entity
{
public static function initMetadata($class)
{
$class->hasMany('User', array(
'local' => 'group_id',
'foreign' => 'user_id',
'refClass' => 'Groupuser'
));
}
}