From 8ef29317aebf36a2a8f365c97e639d4c027e950c Mon Sep 17 00:00:00 2001 From: anas-srikou Date: Mon, 23 Oct 2023 16:39:55 +0900 Subject: [PATCH] date filter not working correctly --- src/Resources/Table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } - } +// } } } }