From f2193314d9801aac5835c1de44fb41922f22021d Mon Sep 17 00:00:00 2001 From: jackbravo Date: Wed, 29 Aug 2007 20:07:08 +0000 Subject: [PATCH] Test for possible bug and notify The bug does appear if you clean the identityMap from the Group table before querying the DB --- tests/RecordTestCase.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/RecordTestCase.php b/tests/RecordTestCase.php index d8ea937b1..58bba57c3 100644 --- a/tests/RecordTestCase.php +++ b/tests/RecordTestCase.php @@ -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();