OphTrOperationnote_CataractComplication::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('cataract' => array(self::HAS_ONE, 'Element_OphTrOperationnote_Cataract', 'cataract_id'), 'complication' => array(self::BELONGS_TO, 'OphTrOperationnote_CataractComplications', 'complication_id'));
    }