Skip to content
Browse files

Fixed test showing a warning of undefined key offsets because numeric…

…ally

indexed arrays after cast to objects cannot be accessed by numeric property.
  • Loading branch information...
1 parent 33acfaa commit 3ddd790c8992965e93a334157ea00092757e0e70 @mhitza mhitza committed with willdurand
Showing with 6 additions and 2 deletions.
  1. +6 −2 test/testsuite/generator/builder/om/GeneratedObjectObjectColumnTypeTest.php
View
8 test/testsuite/generator/builder/om/GeneratedObjectObjectColumnTypeTest.php
@@ -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)

0 comments on commit 3ddd790

Please sign in to comment.
Something went wrong with that request. Please try again.