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.
1 parent 8c17827 commit 86a61abCopy full SHA for 86a61ab
src/Jenssegers/Mongodb/Query/Builder.php
@@ -910,6 +910,12 @@ protected function compileWheres()
910
$where['value'] = new UTCDateTime($where['value']->getTimestamp() * 1000);
911
}
912
913
+ } elseif (isset($where['values'])) {
914
+ array_walk_recursive($where['values'], function (&$item, $key) {
915
+ if ($item instanceof DateTime) {
916
+ $item = new UTCDateTime($item->getTimestamp() * 1000);
917
+ }
918
+ });
919
920
921
// The next item in a "chain" of wheres devices the boolean of the
0 commit comments