We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da9f4a1 + 86a61ab commit 99f402bCopy full SHA for 99f402b
src/Jenssegers/Mongodb/Query/Builder.php
@@ -932,6 +932,12 @@ protected function compileWheres()
932
$where['value'] = new UTCDateTime($where['value']->getTimestamp() * 1000);
933
}
934
935
+ } elseif (isset($where['values'])) {
936
+ array_walk_recursive($where['values'], function (&$item, $key) {
937
+ if ($item instanceof DateTime) {
938
+ $item = new UTCDateTime($item->getTimestamp() * 1000);
939
+ }
940
+ });
941
942
943
// The next item in a "chain" of wheres devices the boolean of the
0 commit comments