fix(db): Doctrine\DBAL\Query\QueryBuilder::getState does not exist

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-07-01 17:35:26 +02:00
parent 4c1003122d
commit ec1a3d6cd3
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -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;
}
/**