public static function model($className = __CLASS__) { return parent::model($className); }
private static function getAddressType($addr_type) { switch ($addr_type) { case 'HOME': return \AddressType::model()->find('name=?', array('Home'))->id; } return; }