views:

16

answers:

1

Hello,

I want to know how I can make a validator for a key which must be unique.

A: 

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

phidah
Thanks, It's the validator I searched.
Corum