Skip to content

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

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

ViniTou merged 1 commit 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.

The single call, in RepositoryConnectionAwareMetrics::getCountExpression(), receives a qualified name from DraftsCountMetrics (v.id), so a private helper quotes each dot-separated part with quoteSingleIdentifier() — the generated SQL is unchanged ("v"."id").

For QA:

No functional change. PHP 8.3 and 8.4, fresh composer update: unit and integration suites exit 0, PHPStan and code style clean. No remaining quoteIdentifier() calls. Unit tests mock Connection, so the metrics SQL is not exercised against a real database.

Documentation:

N/A

…eSingleIdentifier()

DBAL 4.4 deprecates Connection::quoteIdentifier() / AbstractPlatform::quoteIdentifier()
in favor of quoting each part of a qualified name individually via
quoteSingleIdentifier(). RepositoryConnectionAwareMetrics::getCountExpression()
can receive both plain column names and alias-qualified ones (e.g. `v.id`), so it
now splits on `.` and quotes each part separately, preserving the original
per-part-quoted SQL semantics.
@sonarqubecloud

Copy link
Copy Markdown

@ViniTou
ViniTou merged commit ea73760 into 6.0 Sep 24, 2026
13 checks passed
@ViniTou
ViniTou deleted the IBX-12046-dbal-quote-single-identifier branch September 24, 2026 11:05
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