mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #793] [MERGED] Improved error messages in Paginator: LimitSubqueryOutputWalker #8719
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/793
Author: @flip111
Created: 9/17/2013
Status: ✅ Merged
Merged: 9/30/2013
Merged by: @guilhermeblanco
Base:
master← Head:patch-2📝 Commits (2)
b803f06Improved error messages in Paginator: LimitSubqueryOutputWalkera18aba1Improved error messages in Paginator: LimitSubqueryOutputWalker📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php(+4 -0)📄 Description
The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.
If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).
Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.