|
@@ 2164-2171 (lines=8) @@
|
| 2161 |
|
* @param array $methods |
| 2162 |
|
* @return \Doctrine\ORM\Query\Expr\Andx |
| 2163 |
|
*/ |
| 2164 |
|
protected function createConditionsForIntegerCollectionSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2165 |
|
{ |
| 2166 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['anyis'])) { |
| 2167 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2168 |
|
} |
| 2169 |
|
|
| 2170 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2171 |
|
} |
| 2172 |
|
|
| 2173 |
|
/** |
| 2174 |
|
* Translates params into where conditions. The subquery must really return an integer for it to work! |
|
@@ 2188-2195 (lines=8) @@
|
| 2185 |
|
* @return \Doctrine\ORM\Query\Expr\Andx |
| 2186 |
|
* @uses subqueryAnyisExpression |
| 2187 |
|
*/ |
| 2188 |
|
protected function createConditionsForStringCollectionSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2189 |
|
{ |
| 2190 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['anyis'])) { |
| 2191 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2192 |
|
} |
| 2193 |
|
|
| 2194 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2195 |
|
} |
| 2196 |
|
|
| 2197 |
|
/** |
| 2198 |
|
* Translates params into where conditions. The subquery must really return an integer for it to work! |