fix(db): Deprecate `getState()` as per upstream

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/46605/head
Joas Schilling 2024-07-01 17:35:26 +07:00
parent 829f2b9bc7
commit e45465781f
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
2 changed files with 6 additions and 1 deletions

@ -145,9 +145,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 This function is going to be removed with the next Doctrine/DBAL update
* and we can not fix this in our wrapper.
*/
public function getState() {
$this->logger->debug(IQueryBuilder::class . '::' . __FUNCTION__ . ' is deprecated and will be removed soon.', ['exception' => new \Exception('Deprecated call to ' . __METHOD__)]);
return $this->queryBuilder->getState();
}

@ -134,6 +134,8 @@ interface IQueryBuilder {
*
* @return integer Either QueryBuilder::STATE_DIRTY or QueryBuilder::STATE_CLEAN.
* @since 8.2.0
* @deprecated 30.0.0 This function is going to be removed with the next Doctrine/DBAL update
* and we can not fix this in our wrapper.
*/
public function getState();