[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-22 Thread Tomasz Ignatiuk
This solution works public function configure() { // (...) $this-validatorSchema-setPostValidator( new sfValidatorCallback(array( 'callback' = array($this, 'checkUniqueness'), 'arguments' = array( 'model' = 'ProduktPartner', 'multiple_column' =

[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-16 Thread Massimiliano Arione
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

[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-16 Thread Tomasz Ignatiuk
Unfortunatelly in doesn't help. Still validator passes and Propel Exception occurs (There is already object with same partner,product and language). -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to