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'];
|
$args = $newObject['args'];
|
||||||
$obj = $class->newInstanceArgs($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;
|
$result[$resultKey] = $obj;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
@ -553,7 +553,6 @@ class ObjectHydrator extends AbstractHydrator
|
|||||||
$args = $newObject['args'];
|
$args = $newObject['args'];
|
||||||
$obj = $class->newInstanceArgs($args);
|
$obj = $class->newInstanceArgs($args);
|
||||||
|
|
||||||
// if (count($args) == $scalarCount) {
|
|
||||||
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']))) {
|
if (count($args) == $scalarCount || ($scalarCount == 0 && count($rowData['newObjects']))) {
|
||||||
$result[$resultKey] = $obj;
|
$result[$resultKey] = $obj;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user