Re: [symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread Cornelius Parkin
Hi Daniel... Thank you so much!! The problem was that I unset the id field in the form. I did not know that it was supposed to be included in the form because it was present in the URI. I hope this also helps someone else whom faces this problem... Thanks again... Regards CAP On Mon, Sep 13, 20

Re: [symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread Daniel Lohse
You might have forgotten to output $form->renderHiddenFields(false); in your template? Please check that the ID of your object is there in your edit screen's HTML. Cheers, Daniel Sent from my iPhone4 On Sep 13, 2010, at 1:58 PM, corneliusparkin wrote: > Hi > > I have been struggling with th

[symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread corneliusparkin
Hi I have been struggling with this functionality for more than a week now and really hope someone can help me. In the doctrine/schema.yml file, I specify a column "code" to be unique. i.e. code: type: string(10) fixed: false unsigned: false primary: false default: '

Re: [symfony-users] sfValidatorDoctrineUnique doesn't work when only defined in BaseForm?

2010-04-11 Thread Alan Bem
Aren't you talking about two different Forms? It seems that first post-validator comes from (Base)SubscriberForm, but you complaint about NewsletterForm. Is there inheritance relationship beetween them? Cheers On Sat, Apr 10, 2010 at 5:05 PM, godbout wrote: > Hi there! > > I have a very simple t

[symfony-users] sfValidatorDoctrineUnique doesn't work when only defined in BaseForm?

2010-04-10 Thread godbout
Hi there! I have a very simple thing to do: allowing visitors to register their email for a newsletter. The email field is defined as unique in the db, and Doctrine created me the BaseForm with the following code:... [code]$this->validatorSchema->setPostValidator( new sfValidatorDoctrineUni

[symfony-users] sfValidatorDoctrineUnique Is there any way to add criteria..

2009-10-30 Thread ravi
Hello everyone, I am using sfValidatorDoctrineUnique to validate unique username and i am going to implement to edit the "username". so at the time when form comes to edit the user and if i will not change the username then also it gives me the error for uniquenes.. if any one know how to skip a

[symfony-users] sfValidatorDoctrineUnique Is there any way to add criteria..

2009-10-30 Thread ravi
Hello everyone, I am using sfValidatorDoctrineUnique to validate unique username and i am going to implement to edit the "username". so at the time when form comes to edit the user and if i will not change the username then also it gives me the error for uniquenes.. if any one know how to skip a

[symfony-users] sfvalidatordoctrineunique and admin generator: unicity on multiple columns

2009-09-15 Thread waouf
Hi all, I'm getting in trouble using sfvalidatordoctrineunique (Symfony 1.2.8, Doctrine, Ubuntu). This method validates the uniqueness of a column. According to API (http://www.symfony-project.org/api/1_2/ sfValidatorDoctrineUnique), we should be able to add several fields in options (columns in

[symfony-users] sfValidatorDoctrineUnique bug ?

2009-01-09 Thread tonio607
Hi It seems to me that the $values table is never filled with the primary key in the "isUpdate" function of the sfValidatorDoctrineUnique (sf 1.2.1), resulting in an always false return and a major problem with this validator. What do you think of that ? --~--~-~--~~~---