このクエリを使用しようとすると:
$repository = $this->getDoctrine()
->getRepository('AcmeCommentoBundle:Commento');
$query = $repository->createQueryBuilder('p')
->select('DISTINCT p.user')
->where('p.annuncio = :annuncio')
->setParameter('annuncio', $annuncio)
->getQuery();
$utenti = $query->getResult();
次のエラーが返されます。
[Semantical Error] line 0, col 18 near
'user FROM Acme\CommentoBundle\Entity\Commento':
Error: Invalid PathExpression. Must be a StateFieldPathExpression.
このエラーはどういう意味ですか?