mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(db): Doctrine\DBAL\Query\QueryBuilder::getState does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
4c1003122d
commit
ec1a3d6cd3
1 changed files with 4 additions and 2 deletions
|
|
@ -176,10 +176,12 @@ class QueryBuilder implements IQueryBuilder {
|
|||
/**
|
||||
* Gets the state of this query builder instance.
|
||||
*
|
||||
* @return integer Either QueryBuilder::STATE_DIRTY or QueryBuilder::STATE_CLEAN.
|
||||
* @return int Always returns 0 which is former `QueryBuilder::STATE_DIRTY`
|
||||
* @deprecated 30.0.0 Function is no-op because it's removed upstream
|
||||
*/
|
||||
public function getState() {
|
||||
return $this->queryBuilder->getState();
|
||||
$this->logger->debug('Relying on the query builder state is deprecated as it is an internal concern.', ['exception' => new \Exception('Table alias provided for UPDATE query')]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue