Actions
Bug #80425
closedConstraint 'IN' in Query doesn't respect string escaping
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-03-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When building a query inside a repository method using $this->createQuery() and defining an 'IN' constraint by chaining the methods $query->matching() and $query->in() the execution of the query yields an SQL error.
#1472074379: Unknown column 'foo' in 'where clause'
Code example:
public function findUsingOptions()
{
$options = [
'foo',
'bar',
'foobar',
];
$query = $this->createQuery();
$query->matching($query->in('my_column', $options));
return $query->execute();
}
Actions