mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Applying sort on fetch-joined table's column while using paginator with an output walker. #5962
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?
Originally created by @thexpand on GitHub (May 15, 2018).
Bug Report
Description
Here is the initial query:
which gets transformed into the following one (after creating a paginator):
However, as you can see, the second column's alias in the SELECT is not resolved at all.
Instead of aliasing to
productStatusId_12the colum remainedp1_.productStatusId.Which produces the following error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'p1_.productStatusId' in 'field list'Additional information
I'm not using any additional options with the paginator.
Just creating a new paginator with the query and calling
getItems()through the adapter for Zend Framework.