problem with compare and required.

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.


	$this->id_responsable = $this->responsable;

	$this->id_responsable2 = $this->responsable2;



array('responsable', 'compare', 'compareAttribute'=>'responsable2'),