stupid cloud 9 ide broke my code :( sorry
This commit is contained in:
parent
c47a072815
commit
e2f1ea7f23
@ -253,8 +253,7 @@ class ArrayHydrator extends AbstractHydrator
|
||||
$args = $newObject['args'];
|
||||
$obj = $class->newInstanceArgs($args);
|
||||
|
||||
// if ($count === 1) {
|
||||
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects'])) {
|
||||
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']))) {
|
||||
$result[$resultKey] = $obj;
|
||||
|
||||
continue;
|
||||
|
@ -553,7 +553,6 @@ class ObjectHydrator extends AbstractHydrator
|
||||
$args = $newObject['args'];
|
||||
$obj = $class->newInstanceArgs($args);
|
||||
|
||||
// if (count($args) == $scalarCount) {
|
||||
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']))) {
|
||||
$result[$resultKey] = $obj;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user