OphTrOperationbooking_Operation_Sequence::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('theatre' => array(self::BELONGS_TO, 'OphTrOperationbooking_Operation_Theatre', 'theatre_id'), 'firmAssignment' => array(self::HAS_ONE, 'SequenceFirmAssignment', 'sequence_id'), 'firm' => array(self::BELONGS_TO, 'Firm', 'firm_id'), 'sessions' => array(self::HAS_MANY, 'OphTrOperationbooking_Operation_Session', 'sequence_id'), 'interval' => array(self::BELONGS_TO, 'OphTrOperationbooking_Operation_Sequence_Interval', 'interval_id'));
    }