Skip to content

IBX-12046: Replaced deprecated DBAL quoteIdentifier() calls with quoteSingleIdentifier() - #841

Merged
ViniTou merged 2 commits into
6.0from
IBX-12046-dbal-quote-single-identifier
Sep 24, 2026
Merged

ViniTou merged 2 commits into
6.0from
IBX-12046-dbal-quote-single-identifier

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12046

Related PRs:

Description:

DBAL 4.4 deprecates quoteIdentifier() ("Use quoteSingleIdentifier() individually for each part of a qualified name instead", doctrine/dbal#6590). DoctrineBundle 3 — required by Symfony 8 — drops dbal.use_savepoints, whose deprecation was what kept every Doctrine deprecation silent in our test kernels, so these calls must go before that switch.

All 214 calls (19 files: legacy persistence gateways, field type storage gateways, legacy search sort clause and criterion handlers, the test FixtureImporter) are replaced. Single, undotted identifiers — table constants, column literals, generated sort-table aliases (sort_table_…), $this->table — are swapped one-for-one; the literal alias.column forms in the Image, Keyword, Url and User storage gateways (attr, img, kwd, url, usr, s) now quote only the column, as those aliases are used unquoted in the same queries. The generated SQL is identical.

For QA:

No functional change. PHP 8.3 unit suite and PHP 8.4 integration + legacy integration suites (SQLite) exit 0; code style clean. PHPStan reports 7 errors in files this PR does not touch (ISBN\Type, TransactionalInMemoryCacheAdapter, ContentName, LanguageServiceMaximumSupportedLanguagesTest). No remaining quoteIdentifier() calls in src/ or tests/.

Documentation:

N/A

…eSingleIdentifier()

DBAL 4.4 deprecates Connection::quoteIdentifier() and AbstractPlatform::quoteIdentifier() in
favor of quoteSingleIdentifier(), which quotes a single identifier part instead of splitting on
dots. Qualified alias.column references are now built by quoting each part separately and
concatenating with a literal dot, preserving the original generated SQL.
@ViniTou
ViniTou force-pushed the IBX-12046-dbal-quote-single-identifier branch from ac6abf4 to 4c9c156 Compare September 24, 2026 10:56
@sonarqubecloud

Copy link
Copy Markdown

@ViniTou
ViniTou merged commit d2915e2 into 6.0 Sep 24, 2026
13 checks passed
@ViniTou
ViniTou deleted the IBX-12046-dbal-quote-single-identifier branch September 24, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants