Actions
Feature #46462
closedUniquenessValidator for models
Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2013-03-20
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
I am currently writing a UniquenessValidator and I wanted to publish this here, maybe someone has an Idea about functionalities and features. I also want to check if such a validator would be welcome in the core or not. Simple thing: It checks if there is already a value for that column available, usable for e.g. login-names, email-addresses etc. My thoughts so far:
Basic validator:
/** * @validate Uniqueness */ protected $email;
Scoped checking, like: Each account can only have one user with that email-address, but the user can be there multiple times for different accounts.
/** * @validates Uniqueness(scope=user) */ protected $email;
Actions