Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

children()->count() error #91

Open
Oreolek opened this issue Feb 25, 2016 · 0 comments
Open

children()->count() error #91

Oreolek opened this issue Feb 25, 2016 · 0 comments

Comments

@Oreolek
Copy link

Oreolek commented Feb 25, 2016

ERROR: column "categories.lft" must appear in the GROUP BY clause or be used in an aggregate function

PHP code: $model->children()->count()

SQL code: SELECT COUNT(*) FROM "modeltable" WHERE (("lft" > 2) AND ("rgt" < 3)) AND ("root"=375) ORDER BY "lft"

Workaround (if this won't get a fix): children()->orderBy(NULL)->count()

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

No branches or pull requests

1 participant