|
@@ 1900-1907 (lines=8) @@
|
| 1897 |
|
* @param array $methods |
| 1898 |
|
* @return \Doctrine\ORM\Query\Expr\Andx |
| 1899 |
|
*/ |
| 1900 |
|
protected function createConditionsForIntegerCollectionSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 1901 |
|
{ |
| 1902 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['anyis'])) { |
| 1903 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1904 |
|
} |
| 1905 |
|
|
| 1906 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 1907 |
|
} |
| 1908 |
|
|
| 1909 |
|
/** |
| 1910 |
|
* Translates params into where conditions. The subquery must really return an integer for it to work! |
|
@@ 1924-1931 (lines=8) @@
|
| 1921 |
|
* @return \Doctrine\ORM\Query\Expr\Andx |
| 1922 |
|
* @uses subqueryAnyisExpression |
| 1923 |
|
*/ |
| 1924 |
|
protected function createConditionsForStringCollectionSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 1925 |
|
{ |
| 1926 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['anyis'])) { |
| 1927 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1928 |
|
} |
| 1929 |
|
|
| 1930 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 1931 |
|
} |
| 1932 |
|
|
| 1933 |
|
/** |
| 1934 |
|
* Translates params into where conditions. The subquery must really return an integer for it to work! |
|
@@ 1949-1956 (lines=8) @@
|
| 1946 |
|
* @uses subqueryTrueExpression |
| 1947 |
|
* @uses subqueryFalseExpression |
| 1948 |
|
*/ |
| 1949 |
|
protected function createConditionsForDatetimeSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 1950 |
|
{ |
| 1951 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan($methods, ['false', 'true'])) { |
| 1952 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1953 |
|
} |
| 1954 |
|
|
| 1955 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 1956 |
|
} |
| 1957 |
|
|
| 1958 |
|
/** |
| 1959 |
|
* Translates params into where conditions. Null values are handled as you would expect it. |