In your form class you'll need something like:
public function configure() {
parent::configure();
// Common Validation
if ($this-isNew) {
// extra validation for new objects
} else {
thanx for the reply david..
but that is not what i need.. i want to use the
sfValidatorDoctrineUnique validator for username field. and at the
same time i also want that one user can edit his/her user name.. so at
the time of edit the user.. when one submits without changing the
username it will
I'm a little confused about what you're actually trying to achieve but
in your situation it's probably simplest to use a sfValidatorCallback.
Which will allow you to run you own custom logic.
http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorcallback
There you
yes.. i was thinking the same thing.. but i was wondered that if der
is any another way or any type of attribute to the validator which
will skip a single record to check.. anyway.. thanx for the reply
again.. it was nice.. to read your messages..
thanx..
On Oct 30, 6:31 pm, David Ashwood