Skip to content

Update TagRepository.php#19

Open
taoder wants to merge 1 commit into
FabienPennequin:masterfrom
taoder:patch-1
Open

Update TagRepository.php#19
taoder wants to merge 1 commit into
FabienPennequin:masterfrom
taoder:patch-1

Conversation

@taoder
Copy link
Copy Markdown

@taoder taoder commented Dec 12, 2013

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.

The column name was missing in the group by.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant