On 01.01.2011, at 23:59, Christophe COEVOET wrote: > Le 01/01/2011 01:29, Christophe COEVOET a écrit : >> Le 01/01/2011 01:11, Lukas Kahwe Smith a écrit : >>> On 29.12.2010, at 17:49, gordonslondon wrote: >>> >>>> Hi, >>>> >>>> based on this post, and this project, (thanks to Bulat) i have created a >>>> draft for a unique constraint for Doctrine2 ORM. >>>> It was the first time with mocks so maybe some unit tests are wrong (3/3 >>>> tests are ok). >>>> >>>> I've created a git repository, you can find it here. >>>> Is this done in the good way ? Any advice ? >>> Just FYI, there is also one in FOS\UserBundle: >>> https://github.com/FriendsOfSymfony/UserBundle/tree/master/Validator >>> >>> Maybe something like this should end up in >>> https://github.com/stof/DoctrineExtensionsBundle ? >>> >>> regards, >>> Lukas Kahwe Smith >>> [email protected] >> I can add it in my bundle but I have not yet looked at the implementation of >> the unique validator in FOS\UserBundle. Is it complete ? >> > Is there a reason why this validator could not end up in the new > DoctrineAbstractBundle ? > I'm not sure that FOS\UserBundle (for example) wants to add a dependency to > my bundle, especially if it is just for the validator as the rest is ORM > specific at the moment. This would be way much easier to use it in > third-party bundles which don't want to add a dependency just for a validator > they could copy/paste in their own code.
FOS\UserBundle ships these validators for convenience, but they are not used by default. So as soon as there is a well maintained 3rd party Bundle with validators I guess we would remove them from FOS\UserBundle. regards, Lukas Kahwe Smith [email protected] -- 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
