如何才能获得该查询返回结果? productCategory是与formItemPosition相关的对象的arrayCollection。
$qb = $this->getQueryBuilder('fi');
$items = $qb
->innerJoin('fi.formItemPosition', 'fip')
->where('fip.productCategory IN (:productCategories)')
->andWhere('fip.documentCategory = :documentCategory')
->setParameters(['documentCategory' => $documentCategory,
'productCategories' => $productCategories
]);