code: def load_stock_links(self):
          
          links = self.__get_session().query(dal.AssetClassStock).all()
          for entity in links:
              # log(DEBUG, f"adding {entity.symbol} to {entity.assetclassid}")
              # mapping
              stock: Stock = Stock(entity.symbol)
              # find parent classes by id and assign children
              parent: AssetClass = self.model.get_class_by_id(entity.assetclassid)
              if parent:
                  # Assign to parent.
                  parent.stocks.append(stock)
                  # Add to index for easy reference
                  self.model.stocks.append(stock)
docs: Read stock links into the model