Project

General

Profile

Actions

Bug #58119

closed

Using $query->statement causes exception

Added by Kilian Hann almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2014-04-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The following (simplified) repository method causes the exception 1302855001 with The property "statement" on the subject does not exist. in TYPO3 6.2.1 and 6.2.0:
Subject is TYPO3\CMS\Extbase\Persistence\Generic\QueryResult.

public function findByUids($uids = array()){
        $uids[] = -1;
        $query = $this->createQuery();
        $q = '
        SELECT
            *
        FROM
            tx_test_domain_model_test
        WHERE 1
            AND uid IN('.implode(',',$uids).')
        GROUP BY uid
        ORDER BY field(uid,' . implode(',', $uids) . ')
        ';
        $query->statement($q);
        return $query->execute();
    }

(it works fine in TYPO3 4.7.x)

Actions

Also available in: Atom PDF