|
@@ 2124-2131 (lines=8) @@
|
| 2121 |
|
* @param array $methods |
| 2122 |
|
* @return \Doctrine\ORM\Query\Expr\Andx |
| 2123 |
|
*/ |
| 2124 |
|
protected function createConditionsForIntegerCollectionSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2125 |
|
{ |
| 2126 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['anyis'])) { |
| 2127 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2128 |
|
} |
| 2129 |
|
|
| 2130 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2131 |
|
} |
| 2132 |
|
|
| 2133 |
|
/** |
| 2134 |
|
* Translates params into where conditions. The subquery must really return an integer for it to work! |
|
@@ 2148-2155 (lines=8) @@
|
| 2145 |
|
* @return \Doctrine\ORM\Query\Expr\Andx |
| 2146 |
|
* @uses subqueryAnyisExpression |
| 2147 |
|
*/ |
| 2148 |
|
protected function createConditionsForStringCollectionSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2149 |
|
{ |
| 2150 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['anyis'])) { |
| 2151 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2152 |
|
} |
| 2153 |
|
|
| 2154 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2155 |
|
} |
| 2156 |
|
|
| 2157 |
|
/** |
| 2158 |
|
* Translates params into where conditions. The subquery must really return an integer for it to work! |
|
@@ 2173-2180 (lines=8) @@
|
| 2170 |
|
* @uses subqueryTrueExpression |
| 2171 |
|
* @uses subqueryFalseExpression |
| 2172 |
|
*/ |
| 2173 |
|
protected function createConditionsForDatetimeSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2174 |
|
{ |
| 2175 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['false', 'true'])) { |
| 2176 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2177 |
|
} |
| 2178 |
|
|
| 2179 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2180 |
|
} |
| 2181 |
|
|
| 2182 |
|
/** |
| 2183 |
|
* Translates params into where conditions. Null values are handled as you would expect it. |