I have a model class that looks like this
class Payment extends CActiveRecord { ... ... ... public function setCountry($country)