Issue Bug Closed

#80215using contains in query on property of group type doesn't work

Jens Schendzielorz 03/09/17, 17:16 updated 10/02/18, 11:02

Description

I’ve a field which has the type ‘group’. I don’t use the MM relation and store the values comma seperated in a field of type text.

Now i will query data with a constraint like $query->contains(‘asdf’, ‘bar’). As a result i get the error message “ Unsupported or non-existing property name “asdf” used in relation matching.”

After some research using google i found an older issue describing the same problem regarding a field of type ‘select’.
I searched for the line in typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php and replaced

$columnConfiguration['type'] === 'select'

with

in_array($columnConfiguration['type'], array('select', 'group'))

It would be nice if someone could contribute this to the next typo3 7.6 version. I don’t now how i can contribute. :)

Reviews 3