We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ERROR: column "categories.lft" must appear in the GROUP BY clause or be used in an aggregate function
PHP code: $model->children()->count()
$model->children()->count()
SQL code: SELECT COUNT(*) FROM "modeltable" WHERE (("lft" > 2) AND ("rgt" < 3)) AND ("root"=375) ORDER BY "lft"
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()
children()->orderBy(NULL)->count()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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()
The text was updated successfully, but these errors were encountered: