DIGIT-ARC read-only archive · snapshot: July 23, 2026

how to search mongodb fieldtype timestamp?(symfony2)

2 posts · originally from https://geek.digit.in/community/threads/how-to-search-mongodb-fieldtype-timestamp-symfony2.170403/

A
amanvarshney Original post #1
Feb 20, 2013 at 10:30 AM
I use Mongodb.

and create query.

createAt field type is timestamp.
ex) createAt => new MongoTimestamp(1361925805, 0),

My query is
ex)
...
->field('createAt')->lt(1361925805)
...

but result is array(0).
ex) select * from aaa where createAt < '125123123123'

how to make mongodb query.