def __load_child_classes(self, ac: AssetClass):
<EOL>db = self.__get_session()<EOL>entities = (<EOL>db.query(dal.AssetClass)<EOL>.filter(dal.AssetClass.parentid == ac.id)<EOL>.order_by(dal.AssetClass.sortorder)<EOL>.all()<EOL>)<EOL>for entity in entities:<EOL><INDENT>child_ac = self.__map_entity(entity)<EOL>child_ac.depth = ac.depth + <NUM_LIT:1><EOL>ac.classes.append(child_ac)<EOL>self.model.asset_classes.append(child_ac)<EOL>self.__load_child_classes(child_ac)<EOL><DEDENT>
Loads child classes/stocks