Changeset 4498
- Timestamp:
- 06/08/08 21:05:02 (13 months ago)
- Files:
-
- 1 modified
-
branches/0.11/tests/Ticket/1113TestCase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/tests/Ticket/1113TestCase.php
r4479 r4498 53 53 $this->fail($e->getMessage()); 54 54 } 55 55 56 $reopend = Doctrine::getTable('VIH_Model_Course_Registration')->findOneById($registrar->id); 57 56 58 try { 57 59 $reopend->Subjects[] = $subject1; … … 140 142 'foreign' => 'id')); 141 143 142 $this->has One('VIH_Model_Subject as Subjects', array('refClass' => 'VIH_Model_Course_Registration_Subject',144 $this->hasMany('VIH_Model_Subject as Subjects', array('refClass' => 'VIH_Model_Course_Registration_Subject', 143 145 'local' => 'registration_id', 144 146 'foreign' => 'subject_id')); … … 176 178 $this->hasColumn('subject_id', 'integer', null, array('primary' => true)); 177 179 } 178 179 public function setUp()180 {181 $this->hasOne('VIH_Model_Course_SubjectGroup as SubjectGroup', array('local' => 'subject_group_id',182 'foreign' => 'id'));183 184 $this->hasOne('VIH_Model_Subject as Subject', array('local' => 'subject_id',185 'foreign' => 'id'));186 }187 180 } 188 181