* @package mr * @link https://www.zentao.net */ class mrTao extends mrModel { /** * 根据合并请求获取关联对象信息。 * Get story,task,bug pairs which linked MR. * * @param int $MRID * @param string $objectType story|task|bug * @access public * @return array */ protected function getLinkedObjectPairs($MRID, $objectType = 'story') { return $this->dao->select('BID')->from(TABLE_RELATION) ->where('AType')->eq($this->app->rawModule) ->andWhere('BType')->eq($objectType) ->andWhere('AID')->eq($MRID) ->fetchPairs(); } }