DoctrineExtensions-Taggable icon indicating copy to clipboard operation
DoctrineExtensions-Taggable copied to clipboard

Update TagRepository.php

Open taoder opened this issue 11 years ago • 0 comments

The column name was missing in the group by.

I got this error :

An exception occurred while executing 'SELECT c0_.name AS name0, COUNT(c1_.tag_id) AS sclr1 FROM Community c0_ INNER JOIN CommunitySubscribing c1_ ON c0_.id = c1_.tag_id WHERE c1_.resource_type = ? GROUP BY c1_.tag_id ORDER BY sclr1 DESC' with params ["theme"]:

SQLSTATE[42803]: Grouping error: 7 ERREUR: la colonne « c0_.name » doit apparaître dans la clause GROUP BY ou doit être utilisé dans une fonction d'agrégat LINE 1: SELECT c0_.name AS name0, COUNT(c1_.tag_id) AS sclr1 FROM Co...

My modification fix this problem.

taoder avatar Dec 12 '13 19:12 taoder