File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/Symfony/Bundle/DoctrineMongoDBBundle/Logger Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,16 @@ static protected function formatQuery(array $query)
60
60
$ formatted = 'ObjectId(" ' .$ value .'") ' ;
61
61
} elseif ($ value instanceof \MongoDate) {
62
62
$ formatted = 'new Date(" ' .date ('r ' , $ value ->sec ).'") ' ;
63
+ } elseif ($ value instanceof \DateTime) {
64
+ $ formatted = 'new Date(" ' .date ('r ' , $ value ->getTimestamp ()).'") ' ;
63
65
} elseif ($ value instanceof \MongoRegex) {
64
66
$ formatted = 'new RegExp(" ' .$ value ->regex .'", " ' .$ value ->flags .'") ' ;
67
+ } elseif ($ value instanceof \MongoMinKey) {
68
+ $ formatted = 'new MinKey() ' ;
69
+ } elseif ($ value instanceof \MongoMaxKey) {
70
+ $ formatted = 'new MaxKey() ' ;
71
+ } elseif ($ value instanceof \MongoBinData) {
72
+ $ formatted = 'new BinData(" ' .$ formatted ->bin .'", " ' .$ formatted ->type .'") ' ;
65
73
} else {
66
74
$ formatted = (string ) $ value ;
67
75
}
You can’t perform that action at this time.
0 commit comments