Skip to content

Commit

Permalink
Fixed test showing a warning of undefined key offsets because numeric…
Browse files Browse the repository at this point in the history
…ally

indexed arrays after cast to objects cannot be accessed by numeric property.
  • Loading branch information
mhitza authored and willdurand committed Feb 3, 2012
1 parent 33acfaa commit 3ddd790
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -55,10 +55,14 @@ public function testGetterDoesNotKeepValueBetweenTwoHydrationsWhenUsingOnDemandF
{
ComplexColumnTypeEntity1Query::create()->deleteAll();
$e = new ComplexColumnTypeEntity1();
$e->setBar((object)array(1,2));
$e->setBar((object)array(
'a' =>1,
'b' => 2));
$e->save();
$e = new ComplexColumnTypeEntity1();
$e->setBar((object)array(3,4));
$e->setBar((object)array(
'a' => 3,
'b' => 4));
$e->save();
$q = ComplexColumnTypeEntity1Query::create()
->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)
Expand Down

0 comments on commit 3ddd790

Please sign in to comment.