doctrine/DoctrineMongoDBBundle — pull request #68 by stof (2011-12-22 21:19:14+00:00)
Title: Validator

This refactors the Unique validator to use the one from the bridge. The annotation is in the bundle is just a convenience to set the service id (the original class could be used by hardcoding the id in your validation files).
There is a BC break compared tothe previous annotation as the property is now named ``fields`` instead of ``path`` (btw, it can be an array if you want to check the uniqueness of a tuple instead of the uniqueness of a given field).
It also registers an initializer to allow validating proxies without issues (closes #32) and registers the compiler pass to make it possible to load some validation rules conditionally by putting them in ``Resources/config/validation.mongodb.xml`` (or yml) to make it easier to support several backends in the same bundle