[BUGFIX] Fix early return in addUnionStatement method 90/51290/5
authorDominique Kreemers <dominique.kreemers@icloud.com>
Tue, 17 Jan 2017 11:19:24 +0000 (12:19 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 25 Jan 2017 04:15:09 +0000 (05:15 +0100)
commita522617e2a549e8165671be5a78586e885db66f4
tree36ca3d88f5a2d5cc617cc87661118a866c4d80d2
parent41222e82cdef78090c1bce8d1e1185688a34a7b8
[BUGFIX] Fix early return in addUnionStatement method

Set $propertyPath, $tableName and $className to avoid
unnecessary joins and wrong repository results.

This is a regression fix after the Doctrine migration.

Resolves: #79286
Related: #77379
Releases: master
Change-Id: I64489b46b9ca751535b64482f54ceb7b2da05003
Reviewed-on: https://review.typo3.org/51290
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php
typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php