1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Test for possible bug and notify

The bug does appear if you clean the identityMap from the Group table before querying the DB
This commit is contained in:
jackbravo 2007-08-29 20:07:08 +00:00
parent 2d08773ea7
commit f2193314d9

View File

@ -803,7 +803,11 @@ class Doctrine_Record_TestCase extends Doctrine_UnitTestCase
$user->Group[0] = $record;
$record = $gf->find(3);
$user->Group[1] = $record;
if ($record === false) {
$this->fail("Group record with id 3 couldn't be retrived");
} else {
$user->Group[1] = $record;
}
$user->save();