mandango/mandango — pull request #40 by AntonStoeckl (2013-02-26 08:42:55+00:00)
Title: Feature id to mongo

Hi Pablo,

after playing with the idGenerators I think that this change makes sense. There are many cases where the MongoId will be changed to it's string representation, for example to use it in forms (or urls). The client code should not know about MongoIds so it will set the _id to the string. The way idToMongo() works this is totally fine and save. :-) I have added my unit tests, all other unit tests still run.

Best regards, Anton