Project

General

Profile

Actions

Feature #7848

closed

Support array / multiple values in $query->contains

Added by Morton Jonuschat almost 14 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2010-05-21
Due date:
2010-06-04
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

The contains constraint should accept an Array/ObjectStorage/Traversable as condition so that building a query like this is possible

$query->matching(
$query->contains('relation', array(1,2,3,4,5))
);

Currently the only way is to build an array of $query->contains('relation', $relation) and combine that with a logicalOr condition.

Looking at the resulting SQL this leads to an excessive and unnecessary amount of subqueries.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #64044: Revert fix for #63275 until concept is worked out and agreed uponClosed2014-12-26

Actions
Has duplicate TYPO3 Core - Bug #63275: Typo3DbQueryParser generates broken SQL for array in CONTAINS-comparisonClosedStefan Neufeind2014-11-23

Actions
Actions

Also available in: Atom PDF