[+BUGFIX] Extbase: Some smaller tweaks and fixes
authorBastian Waidelich <bastian@typo3.org>
Tue, 2 Nov 2010 18:20:52 +0000 (18:20 +0000)
committerBastian Waidelich <bastian@typo3.org>
Tue, 2 Nov 2010 18:20:52 +0000 (18:20 +0000)
commit35ce4341eca064702dc166ea7b6a3be3e7cdc9b4
treeac51b667181bb1376245dfe2085b64f79ad7edd8
parent3a19439c38158419ea2174c8d277bc2cfcbca14e
[+BUGFIX] Extbase: Some smaller tweaks and fixes
[!!!][+FEATURE] Extbase (Persistence): Backport QueryResult from FLOW3

Now Query::execute() returns an instance of QueryResultInterface that allows it to modify the query before actually accessing the records that it retrieves. This is required for the upcoming "Fluid widgets" backport (#10568).
NOTE: This change is not backwards compatible, if you work with PHPs array_* functions on the query result. To work around this issue, you'll have to convert the query result to an array before by calling the QueryResult::toArray() method. We're planning to add a compatibility mode, but that's not yet implemented.

Resolves: #10566
13 files changed:
typo3/sysext/extbase/Classes/MVC/Controller/Argument.php
typo3/sysext/extbase/Classes/Persistence/Backend.php
typo3/sysext/extbase/Classes/Persistence/ManagerInterface.php
typo3/sysext/extbase/Classes/Persistence/Query.php
typo3/sysext/extbase/Classes/Persistence/QueryInterface.php
typo3/sysext/extbase/Classes/Persistence/QueryResult.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/QueryResultInterface.php [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/QuerySettingsInterface.php
typo3/sysext/extbase/Classes/Property/Mapper.php
typo3/sysext/extbase/Classes/Utility/Extension.php
typo3/sysext/extbase/Tests/Persistence/QueryResult_testcase.php [new file with mode: 0644]
typo3/sysext/extbase/Tests/Persistence/Query_testcase.php
typo3/sysext/extbase/Tests/Persistence/Repository_testcase.php [new file with mode: 0644]