1
0
mirror of synced 2025-01-31 04:21:44 +03:00

oops.. forgot to add a condition

This commit is contained in:
jaimz22 2014-11-08 16:56:42 +00:00
parent e2f1ea7f23
commit dd012dfd90
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ class ArrayHydrator extends AbstractHydrator
$args = $newObject['args'];
$obj = $class->newInstanceArgs($args);
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']))) {
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']) == 1)) {
$result[$resultKey] = $obj;
continue;

View File

@ -553,7 +553,7 @@ class ObjectHydrator extends AbstractHydrator
$args = $newObject['args'];
$obj = $class->newInstanceArgs($args);
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']))) {
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']) == 1 )) {
$result[$resultKey] = $obj;
continue;