Issue Bug Closed

#84022cObj->searchWhere is broken

Sven Juergens 02/23/18, 14:06 updated 10/02/18, 10:50

Description

hi,

The returned string of cObj->searchWhere has changed with TYPO3 8 and Doctrine, respectively.

before you got a string like this

(testTable.field LIKE '%test%' 
OR testTable.field1 LIKE '%test%' 
OR testTable.fiel2 LIKE '%test%' 
OR testTable.field3 LIKE '%test%')

now with TYPO3 8 you got a string like this

`testTable`.`field ` LIKE :dcValue1) 
OR (`testTable`.`field1` LIKE :dcValue2) 
OR (`testTable`.`field2` LIKE :dcValue3) 
OR (`testTable`.`field3` LIKE :dcValue4)

With the new String you got a SQL Error like this:

Value for :dcValue2 not found in params array. Params array key should be "dcValue2"

Reviews 2