我使用Doctrine2和QueryBuilder。我需要表达式(从Abb \ Entity \ Table中选择一个)* sometable.amount / exchange
$qb=$this->entityManager->createQueryBuilder();
$qb->addSelect('p.amount*(select crr.rateusd from
Application\DBUtils\Entities\Currency
where crr.code=c.currency)/25 as amountselected');
[语法错误]第0行,第241栏:错误:预期文字,获得“选择”
谢谢