[FEATURE] Add possibility to create TRIM expression with Doctrine DBAL 55/51255/5
authorOliver Hader <oliver@typo3.org>
Tue, 10 Jan 2017 22:01:00 +0000 (23:01 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 11 Jan 2017 19:58:35 +0000 (20:58 +0100)
commit7db75b021feb11ce1e63cb970fbcc1448e4e0d6f
tree94a2370e6c8e75019fda8e32f6968772abd857f2
parent74f525e7716f1ac9a9271485a01ac1023411e4bc
[FEATURE] Add possibility to create TRIM expression with Doctrine DBAL

This adds the possibility to create TRIM expressions using the
ExpressionBuilder like shown in the following example:

$queryBuilder->expr()->comparison(
    $queryBuilder->expr()->trim($fieldName),
    ExpressionBuilder::EQ,
    $queryBuilder->createNamedParameter('', \PDO::PARAM_STR)
);

Resolves: #79262
Releases: master
Change-Id: I7813e8a1b0a38ec36797dfbb4fdb02ab78ebe8b2
Reviewed-on: https://review.typo3.org/51255
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Classes/Database/Query/Expression/ExpressionBuilder.php
typo3/sysext/core/Documentation/Changelog/master/Feature-79262-AddPossibilityToCreateTRIMExpressionWithDoctrineDBAL.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php