Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : |
||
return | the static model class |
public function getFirstEyeOrSecondEye($criteria) { $cataractManagementElement = \OEModule\OphCiExamination\models\Element_OphCiExamination_CataractSurgicalManagement::model()->with(array('event'))->find($criteria); if ($cataractManagementElement) { return $cataractManagementElement->eye['name']; } }