Issue Task Closed

#102853Mitigate deprecated `QueryBuilder::add()` method calls

Stefan Bürk 01/17/24, 19:11 updated 01/17/24, 20:39

Description

Doctrine DBAL deprecated a handfull QueryBuilder methods without
a replacement. One of them is the `add()` method to set or append
a specified query part. This method will be removed with Doctrine
DBAL 4.0.x [1]. The removal aligns to the decision to make the
internal state not accessable, like the also deprecated and
related methods `resetQueryParts()`, `resetQueryPart()`,
`getQueryParts()` and `getQueryPart()`.

[1] https://github.com/doctrine/dbal/blob/4.0.x/UPGRADE.md#bc-break-changes-in-the-querybuilder-api

Reviews 1