purekid / mongodm

MongoDB ORM that includes support for references,embed and multilevel inheritance.
MIT License
200 stars 47 forks source link

Add "date" type #53

Closed bperel closed 10 years ago

bperel commented 10 years ago

The timestamp type exists but I would like to create date fields, i.e. corresponding to MongoDate instances.

jrschumacher commented 10 years ago

This already exists. Use field type date

jrschumacher commented 10 years ago

I should also say that this will convert to and from a DateTime object.

bperel commented 10 years ago

OK, then shouldn't it be listed in the paragraph "Types supported for model attributes" ?

jrschumacher commented 10 years ago

Very good point. Can you update the README and send a pull request?

bperel commented 10 years ago

Created PR https://github.com/purekid/mongodm/pull/54