code: public function getByCalcId($calcId)
      {
          $where = Entity::A_CALC_REF . '=' . (int)$calcId;
          $result = $this->get($where);
          return $result;
      }
docs: Get downline tree by calculation ID.
  
  @param int $calcId
  @return \Praxigento\BonusHybrid\Repo\Data\Downline[]