Actions
Bug #56205
closedCannot use contain query with multivalued static enumeration column
Start date:
2014-02-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When a column is defined as a multivalued static enumeration:
'somecolumn' => array( 'exclude' => 0, 'label' => 'LLL:EXT:myextension/Resources/Private/Language/locallang_db.xlf:tx_myextension_domain_model_reference.somecolumn', '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 search using operator "contain":
$value = 2; $query->matching( $query->contains('somecolumn', $value) );
as it fails with exception 1327065745: Unsupported or non-existing property name X used in relation matching.
It works properly however using operator "equals" on a single-valued static enumeration.
Actions