symfony/symfony — pull request #4092 by datiecher (2012-04-23 17:40:56+00:00)
Title: [Doctrine Bridge] Fixed UniqueEntityValidator when using inheritance

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/datiecher/symfony.png?branch=ticket_4087)](http://travis-ci.org/datiecher/symfony)
Fixes the following tickets: #4087
Todo: -

I've described the issue in high detail on #4087 so you'll need to read it before reviewing this PR.

As you can see, I'm currently determining the right repository to use based on where it was defined according to the mapping info.

I've also thought about adding a new option in the current validator where the developer could define which repository class should be used, but failed to see a real use case for it.

Thoughts?