I need to do a compare if they are different, but i dont know how to do that.
The another problem is, i use in the form reponsavle as the field, so in the model i have a public attribute called responsable.
But if i try to put them on required it dont work.
before_save(){
$this->id_responsable = $this->responsable;
$this->id_responsable2 = $this->responsable2;
}
rules(){
array('responsable', 'compare', 'compareAttribute'=>'responsable2'),
}