[BUGFIX] Tx_Extbase_Persistence_QueryInterface needs to provide getSource
authorOliver Klee <typo3-coding@oliverklee.de>
Fri, 16 Mar 2012 15:31:34 +0000 (16:31 +0100)
committerFelix Oertel <typo3@foertel.com>
Sat, 17 Mar 2012 09:16:47 +0000 (10:16 +0100)
Tx_Extbase_Persistence_Storage_Typo3DbBackend::parseQuery expects a
Tx_Extbase_Persistence_QueryInterface and then calls getSource on it.
One way to make this clean is to change
Tx_Extbase_Persistence_QueryInterface to provide the getSource method.

Releases: 4.7, 4.8
Fixes: #34916

Change-Id: Ic84a6897c7f46048e4967669712d7afcbc4df069

typo3/sysext/extbase/Classes/Persistence/QueryInterface.php

index 25f2dad..01cad5f 100644 (file)
@@ -111,6 +111,13 @@ interface Tx_Extbase_Persistence_QueryInterface {
        const JCR_JOIN_TYPE_RIGHT_OUTER = '{http://www.jcp.org/jcr/1.0}joinTypeRightOuter';
 
        /**
+        * Gets the node-tuple source for this query.
+        *
+        * @return Tx_Extbase_Persistence_QOM_SourceInterface the node-tuple source; non-NULL
+        */
+       public function getSource();
+
+       /**
         * Executes the query against the backend and returns the result
         *
         * @return Tx_Extbase_Persistence_QueryResultInterface|array The query result object or an array if $this->getQuerySettings()->getReturnRawQueryResult() is TRUE