Override sfValidatorPropelUnique and define a method isUpdate() that return always false
On 15 Feb, 15:54, Tomasz Ignatiuk <tomek.ignat...@gmail.com> wrote: > Hi > > I have a table with unique index of 3 columns. So I use this: > > $this->validatorSchema->setPostValidator( > new sfValidatorPropelUnique(array('model' => 'ProduktPartner', > 'column' => array('partner', 'product', 'language'))) > ); > > It works well. > But I would like to make some changes in the form. To give a > possibility to choose one partner, one product and many languages. I > have changed processForm to save for each language different object > with the same partner and product. But then, sfValidatorPropelUnique > doesn't work. Any ideas how to solve this problem out? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.