doctrine/mongodb-odm — pull request #593 by j (2013-05-30 19:42:51+00:00)
Title: Removed filter criteria from Query and into DocumentPersister

I noticed that our filters weren't working because the field wasn't getting mapped to the database value from the property value.

i.e.) $deleted with mapped field name "del" was creating "deleted": { $ne: true } instead of "del": { $ne: true }.

This addresses that issue.

Also, the document persister seems to be where this is being handled, so I removed it from the Query and added it where needed.

Tests pass in doctrine as well as my tests for my project and the query profiler shows the proper queries now.

Woot.