Element_OphTrOperationnote_Cataract::relations PHP Method

relations() public method

public relations ( ) : array
return array relational rules.
    public function relations()
    {
        // NOTE: you may need to adjust the relation name and the related
        // class name for the relations automatically generated below.
        return array('event' => array(self::BELONGS_TO, 'Event', 'event_id'), 'incision_type' => array(self::BELONGS_TO, 'OphTrOperationnote_IncisionType', 'incision_type_id'), 'incision_site' => array(self::BELONGS_TO, 'OphTrOperationnote_IncisionSite', 'incision_site_id'), 'iol_position' => array(self::BELONGS_TO, 'OphTrOperationnote_IOLPosition', 'iol_position_id'), 'user' => array(self::BELONGS_TO, 'User', 'created_user_id'), 'usermodified' => array(self::BELONGS_TO, 'User', 'last_modified_user_id'), 'complication_assignments' => array(self::HAS_MANY, 'OphTrOperationnote_CataractComplication', 'cataract_id'), 'complications' => array(self::HAS_MANY, 'OphTrOperationnote_CataractComplications', 'complication_id', 'through' => 'complication_assignments'), 'operative_device_assignments' => array(self::HAS_MANY, 'OphTrOperationnote_CataractOperativeDevice', 'cataract_id'), 'operative_devices' => array(self::HAS_MANY, 'OperativeDevice', 'operative_device_id', 'through' => 'operative_device_assignments'), 'iol_type' => array(self::BELONGS_TO, 'OphTrOperationnote_IOLType', 'iol_type_id'));
    }