1
0
mirror of synced 2025-01-31 12:32:59 +03:00

stupid cloud 9 ide broke my code :( sorry

This commit is contained in:
jaimz22 2014-11-08 16:45:58 +00:00
parent c47a072815
commit e2f1ea7f23
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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;