[FLOW3-general] setOrderings for sub-properties
Ferdinand Kuhl
fcool at coolys.de
Thu Aug 25 14:59:18 CEST 2011
Hi list,
a bit more on this issue: setOrderinngs() appends rootAlias . "yourProperty"
to the orderBy-Clause. And appearently multi-dot-notation has been dropped
shortly by doctrine:
http://www.doctrine-project.org/projects/orm/2.1/docs/whats-new/en
The only possibility I can see at the moment is detect "." in the argument,
do a join for this table and rewrite the order by statement.
Has anyone problems with that? Should I try to prepare a patch?
Greetz,
Ferdinand
Ferdinand Kuhl wrote:
> Ah! I found this issue is already in the bugtracker.
>
> http://forge.typo3.org/issues/26885
>
> I will try, if I can come up with an Idea... but in the ORM-Interface it
> is ... not to easy to understand all impacts a change could have...
>
> Ferdinand Kuhl wrote:
>
>> Hi List,
>>
>> does anyone know a possibility to order by subproperties?
>>
>> $query->setOrderings('root.child',
>> \TYPO3\FLOW3\Persistence\QueryInterface::ORDER_ASCENDING)
>> does not seem to work. Or do I make a mistake?
>>
>> Greets,
>> Ferdinand
More information about the FLOW3-general
mailing list