Issue Bug Closed

#58119Using $query->statement causes exception

Kilian Hann 04/23/14, 12:10 updated 09/11/14, 16:37

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.