Project

General

Profile

Actions

Bug #56205

closed

Cannot use contain query with multivalued static enumeration column

Added by Xavier Perseguers about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Extbase
Target version:
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 #1

Updated by Gerrit Code Review about 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27787

Actions #2

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27787

Actions #3

Updated by Gerrit Code Review about 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27787

Actions #4

Updated by Xavier Perseguers about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28471

Actions #6

Updated by Xavier Perseguers about 10 years ago

  • Status changed from Under Review to Resolved
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF