å½ç¶ã®ããã« FLOOR é¢æ°ã使ããã¨æã£ã¦ãã $qb = $this->getDoctrine() ->getRepository('MyBundle:Test') ->createQueryBuilder('test') ->select('COUNT(test.id) AS rows') ->addSelect('FLOOR(test.hoge / test.fuga) AS rate'); ~~ ~~ ~~ $result = $qb->getQuery()->getResult(); Symfony2 ã§ä¸è¨ã®ãã㪠DQL ãæ¸ãã¦å®è¡ããã¨ãã«ããããªã¨ã©ã¼ãã§ãã QueryException: [Syntax Error] line {LINE}, col {COL}: Error: Expected known function, got 'FLOOR' in /p
{{#tags}}- {{label}}
{{/tags}}