[FEATURE] Extbase: Add between() operator to Query object 13/42813/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 21 Aug 2015 13:17:56 +0000 (15:17 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 8 Sep 2015 07:56:11 +0000 (09:56 +0200)
commit0fd91ff67d3a9512b569120cf6aa02bc18e266ff
tree75e8590f4e744c0b0587ee25df5b2fe9ff4a3520
parent4bdc929bfdcf5b162d102a0116bb8d0521c5a6cc
[FEATURE] Extbase: Add between() operator to Query object

Support for ``between`` has been added to the Extbase Query object.
As there is no performance advantage to using BETWEEN on the DBMS
side (the query optimizers converts it to `min <= expr AND expr <= max)`
this method replicates the DBMS behaviour by building a logical AND
condition that has the advantage of working on all DBMS.

Resolves: #47812
Releases: master
Change-Id: Ic3b416515eedc651faf69de1db21eab288a8ad33
Reviewed-on: http://review.typo3.org/42813
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Feature-47812-QuerySupportForBETWEENAdded.rst [new file with mode: 0644]
typo3/sysext/extbase/Classes/Persistence/Generic/Query.php
typo3/sysext/extbase/Tests/Functional/Persistence/OperatorTest.php