Firm::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('serviceSubspecialtyAssignment' => array(self::BELONGS_TO, 'ServiceSubspecialtyAssignment', 'service_subspecialty_assignment_id'), 'firmUserAssignments' => array(self::HAS_MANY, 'FirmUserAssignment', 'firm_id'), 'userFirmRights' => array(self::HAS_MANY, 'UserFirmRights', 'firm_id'), 'members' => array(self::MANY_MANY, 'User', 'firm_user_assignment(firm_id, user_id)'), 'consultant' => array(self::BELONGS_TO, 'User', 'consultant_id'));
    }