[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>
Showing
- typo3/sysext/core/Classes/Database/Query/Expression/ExpressionBuilder.php 19 additions, 1 deletion...e/Classes/Database/Query/Expression/ExpressionBuilder.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-79262-AddPossibilityToCreateTRIMExpressionWithDoctrineDBAL.rst 36 additions, 0 deletions...-AddPossibilityToCreateTRIMExpressionWithDoctrineDBAL.rst
- typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php 88 additions, 0 deletions.../Unit/Database/Query/Expression/ExpressionBuilderTest.php
Please register or sign in to comment