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
An issue occurred as "Error - 'NoneType' object has no attribute 'values'" when I use pagination on query builder.
This issue occurs when I don't have any data present on the given table.
The result should be null if no any data are present but it throws an error.
from masonite.controllers import Controller from masonite.views import View from masonite.request import Request from masonite.response import Response from masoniteorm.query import QueryBuilder class TestController(Controller): def testDocument(self, project_id): documents = QueryBuilder().table("documents").where('job_id', project_id).select_raw('document_type,JSON_ARRAYAGG(JSON_OBJECT("id", documents.id, "title", documents.title)) as documents').group_by("document_type").paginate(18, int(self.request.input('page') or 1)) return documents
No response
Linux
Ubuntu 18.04
Chrome
4.6.1
The text was updated successfully, but these errors were encountered:
I can't replicate this. Can you share more information?
Sorry, something went wrong.
No branches or pull requests
Describe the bug
An issue occurred as "Error - 'NoneType' object has no attribute 'values'" when I use pagination on query builder.
This issue occurs when I don't have any data present on the given table.
Expected behaviour
The result should be null if no any data are present but it throws an error.
Steps to reproduce the bug
Screenshots
No response
OS
Linux
OS version
Ubuntu 18.04
Browser
Chrome
Masonite Version
4.6.1
Anything else ?
No response
The text was updated successfully, but these errors were encountered: