Bug #26885

It's not possible to order by relation properties

Added by Bastian Waidelich over 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
Persistence
Target version:
-
Start date:
2011-05-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

The following code (in a custom repository) won't work if "proposedSessionType" is a relation..

protected $defaultOrderings = array(
    'proposedSessionType' => QueryInterface::ORDER_ASCENDING,
);

Also it does not work to order by properties of a relation like:

protected $defaultOrderings = array(
    'proposedSessionType.title' => QueryInterface::ORDER_ASCENDING,
);


Files

patch.jpg (9.03 KB) patch.jpg Bastian Waidelich, 2011-05-18 22:03
issue26885.patch (1.2 KB) issue26885.patch Ferdinand Kuhl, 2011-08-27 15:09

Also available in: Atom PDF