def load_stock_links(self):
links = self.__get_session().query(dal.AssetClassStock).all()<EOL>for entity in links:<EOL><INDENT>stock: Stock = Stock(entity.symbol)<EOL>parent: AssetClass = self.model.get_class_by_id(entity.assetclassid)<EOL>if parent:<EOL><INDENT>parent.stocks.append(stock)<EOL>self.model.stocks.append(stock)<EOL><DEDENT><DEDENT>
Read stock links into the model