I want to know how I can make a validator for a key which must be unique.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sfValidatorDoctrineUnique or sfValidatorPropelUnique is probably what you’re looking for even though you didn’t describe it in very much detail:
sfValidatorDoctrineUnique: http://www.symfony-project.org/forms/1_4/en/B-Validators#chapter_b_sub_sfvalidatordoctrineunique
sfValidatorPropelUnique: http://www.symfony-project.org/forms/1_4/en/B-Validators#chapter_b_sub_sfvalidatorpropelunique