I recently changed how this works. You can read about it in the "Custom Constraints" section here: http://github.com/symfony/symfony-docs/blob/master/guides/validation.rst
On Oct 14, 6:00 am, Jeremy Mikola <[email protected]> wrote: > Thankfully, a working example already exists (for ODM): > > http://github.com/opensky/Symfony2-Doctrine2-Unique-Validator > > I'm sure Bulat would appreciate it if you forked this, implemented ORM > support, and sent him back a pull request. At the very least, the readme > file for the project shows a concise example of registering any validator as > a service with the DIC. > > On Thu, Oct 14, 2010 at 6:46 AM, Bernhard Schussek <[email protected]>wrote: > > > > > > > Hi Thomas, > > > Currently you have to implement your own ConstraintValidatorFactory > > that injects the EntityManager into the custom validator. Look at the > > provided ConstraintValidatorFactory for an example. > > > Bernhard > > -- > > Software Architect & Engineer > > Blog:http://webmozarts.com > > Twitter:http://twitter.com/webmozart > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-devs%2bunsubscr...@google > > groups.com> > > For more options, visit this group at > >http://groups.google.com/group/symfony-devs?hl=en > > -- > jeremy mikola -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
