我正在使用Symfony2和doctrine。我已经设置了一个带有自定义查找功能的自定义存储库。当它连接到子查询时,根据我所读到的内容,我非常确定我需要使用ResultSetMappingBuilder从查询中获取结果。但我不断收到以下错误:Thecolumn'id'conflictswithanothercolumninthemapper.我的代码是:$sql="SELECTc.idascid,c.country,c.rank,c.continent,q.*FROMcountrycINNERJOIN(SELECTd.*,MAX(d.rating)ASmaxratingFROMduck