oops.. forgot to add a condition
This commit is contained in:
parent
e2f1ea7f23
commit
dd012dfd90
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user