Project

General

Profile

Actions

Feature #32051

open

Concat ordering for Database request

Added by Anonymous almost 13 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2011-11-24
Due date:
% Done:

90%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hi there

it would be nice to be able to made "concat orderings" over multiple fields with database.

I'd imagine this looking like this:


$query = $this->createQuery();

$query->setOrderings(
array(
'CONCAT(field1,field2,field3) as 'fieldx' => Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING
)
);

The code must then check with preg_match if CONCAT\((.*)\) as ([^\s]+) is set.

I'm probably going to implement something like this by my self and I'll post it as soon as I've got something that works.

Greets Tizian


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #79054: Custom Order By ClauseClosed2016-12-20

Actions
Actions

Also available in: Atom PDF