Commit f2193314 authored by jackbravo's avatar jackbravo

Test for possible bug and notify

The bug does appear if you clean the identityMap from the Group table before querying the DB
parent 2d08773e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment