sortByMultiple has gone
Permalink
Concrete5_Library_ItemList#sortByMultiple method in 5.6 is very useful for develop various searching feature. But this method is not exists in 5.7. Here are my ideas to restore sortByMultiple method. What do you think?
1. add addSortBy() method to Concrete\Core\Search\ItemList\Database\ItemList
sortBy() method uses orderBy() method of doctrine query builder. doctrine's addOrderBy() method adds orderby clause instead of overwrite it.
http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/r...
2. add a method to access to doctrine query builder
\Doctrine\DBAL\Query\QueryBuilder object is protected property. No method exists to access it.
1. add addSortBy() method to Concrete\Core\Search\ItemList\Database\ItemList
sortBy() method uses orderBy() method of doctrine query builder. doctrine's addOrderBy() method adds orderby clause instead of overwrite it.
http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/r...
2. add a method to access to doctrine query builder
\Doctrine\DBAL\Query\QueryBuilder object is protected property. No method exists to access it.
So just an FYI, you can use getQueryObject on the ItemList class to get the doctrine query object