public function laserDeferralReasonDependencyValidation($attribute, $params)
{
$deferral_attribute = $params['deferral'];
if ($deferral_id = $this->{$deferral_attribute}) {
$deferral = OphCiExamination_Management_DeferralReason::model()->findByPk($deferral_id);
if ($deferral->other) {
$v = \CValidator::createValidator('required', $this, array($attribute), array('message' => '{attribute} required when deferral reason is ' . $deferral->name));
$v->validate($this);
}
}
}