[BUGFIX] Cannot use contain with multivalued static enumeration column 71/28471/2
authorXavier Perseguers <xavier@typo3.org>
Sat, 1 Mar 2014 10:17:21 +0000 (11:17 +0100)
committerXavier Perseguers <xavier@typo3.org>
Wed, 19 Mar 2014 06:39:12 +0000 (07:39 +0100)
commitf8233c152c1f34d6a5c50ab3ea30778e58dcb363
tree8ea3cb6195df9c246f109b217ccdbfe43179c21d
parentd5160a91eea9f150dc9a42a1a7e55c7c18e8de1c
[BUGFIX] Cannot use contain with multivalued static enumeration column

When a column is defined as a multivalued static enumeration:
'somecolumn' => array(
    'exclude' => 0,
    'label' => 'Some label',
    'config' => array(
        'type' => 'select',
        'items' => array(
            array('Option 1', 1),
            array('Option 2', 2),
            array('Option 3', 3),
            array('Option 4', 4),
        ),
        'size' => 4,
        'maxitems' => 4,
        'eval' => ''
    ),
),
it is not possible to query the domain model using operation "contains":
$value = 2;
$query->matching(
    $query->contains('somecolumn', $value)
);

Releases: 6.2, 6.1
Fixes: #56205
Change-Id: If898db7f355ad931d1c8b55febc2f59f19b0f38b
Reviewed-on: https://review.typo3.org/27787
Reviewed-by: Alexander Opitz
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-on: https://review.typo3.org/28471
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php