IBX-12046: Replaced deprecated DBAL quoteIdentifier() calls with quoteSingleIdentifier() - #98
Merged
Merged
Conversation
…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.
|
Steveb-p
approved these changes
Sep 24, 2026
konradoboza
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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 — dropsdbal.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 fromDraftsCountMetrics(v.id), so a private helper quotes each dot-separated part withquoteSingleIdentifier()— 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 remainingquoteIdentifier()calls. Unit tests mockConnection, so the metrics SQL is not exercised against a real database.Documentation:
N/A