diff --git a/src/Resources/Table.php b/src/Resources/Table.php index 1ebcbd7..8bf6220 100644 --- a/src/Resources/Table.php +++ b/src/Resources/Table.php @@ -703,7 +703,7 @@ protected static function toMongoObjects($record) if (is_string($data) && (static::DEFAULT_ID_FIELD == $key)) { $record[$key] = static::idToMongoId($data); } elseif (is_array($data)) { - if (1 === count($data)) { +// if (1 === count($data)) { // using typed definition, i.e. {"$date" : "2014-08-02T08:40:12.569Z" } if (array_key_exists('$date', $data)) { $temp = $data['$date']; @@ -722,7 +722,7 @@ protected static function toMongoObjects($record) } else { $record[$key] = static::toMongoObjects($data); } - } +// } } } }