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