mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 17:52:02 -04:00
fix(db): Doctrine\DBAL\Query\Expression\CompositeExpression::add* does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
ec1a3d6cd3
commit
6e90ddf41a
1 changed files with 4 additions and 3 deletions
|
|
@ -30,7 +30,9 @@ class CompositeExpression implements ICompositeExpression, \Countable {
|
|||
* @return \OCP\DB\QueryBuilder\ICompositeExpression
|
||||
*/
|
||||
public function addMultiple(array $parts = []): ICompositeExpression {
|
||||
$this->compositeExpression->addMultiple($parts);
|
||||
foreach ($parts as $part) {
|
||||
$this->add($part);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
@ -43,8 +45,7 @@ class CompositeExpression implements ICompositeExpression, \Countable {
|
|||
* @return \OCP\DB\QueryBuilder\ICompositeExpression
|
||||
*/
|
||||
public function add($part): ICompositeExpression {
|
||||
$this->compositeExpression->add($part);
|
||||
|
||||
$this->compositeExpression = $this->compositeExpression->with($part);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue