Hi, English is not my native language, so please excuse my redaction.
I´m using the php framework: Symfony 2, with Doctrine.
I´m doing the next query:
->
and it`s given this:
SQLSTATE[42803]: Grouping error: 7 ERROR: column "e0_.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT e0_.id AS id0, e0_.evaluacion AS evaluacion1, e0_.est...
^
evaluacion have relations manyToOne with estudiante and with clase.
Thanks in advance
I´m using the php framework: Symfony 2, with Doctrine.
I´m doing the next query:
->
Code:
createQuery('SELECT e, count(e.id)
FROM Registro\RegistroBundle\Entity\Evaluacion e
JOIN e.estudiante s
JOIN e.clase c
JOIN e.tipo_evaluacion t
WHERE e.tipo_evaluacion = 1 AND
s.grupo = 1 GROUP BY s.id, c.id')
SQLSTATE[42803]: Grouping error: 7 ERROR: column "e0_.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT e0_.id AS id0, e0_.evaluacion AS evaluacion1, e0_.est...
^
evaluacion have relations manyToOne with estudiante and with clase.
Thanks in advance
Comment