spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Validating multiples unique keys #243

Closed Arzaroth closed 7 years ago

Arzaroth commented 7 years ago

I was in a position I needed a field to be part of two different unique keys, and the validation of the entity when saving was failing as such. So this PR serves the purpose of multiple unique keys per field. This is not a huge change code-wise, and I provided some tests for the feature.

Regards.