Skip to content

[Bug] Remove null connection overrides next to url in the test config (DoctrineBundle 3) - #299

Merged
berfinyuksel merged 1 commit into
2026.xfrom
fix/doctrine-bundle-3-test-config
Oct 28, 2026
Merged

berfinyuksel merged 1 commit into
2026.xfrom
fix/doctrine-bundle-3-test-config

Conversation

@berfinyuksel

Copy link
Copy Markdown
Contributor

Why

pimcore/pimcore#19596 (2026.x, merged 2026-10-21) allows DoctrineBundle 3. This repository pins pimcore/pimcore: 2026.x-dev, so CI now resolves doctrine/doctrine-bundle 3.3.3, whose configuration validation rejects host, port, dbname, user or password on a connection that also defines url, even when the values are null (array_intersect_key, not isset):

Setting the "doctrine.dbal.host", "port", "dbname", "user" or "password" options while the "url" one is defined is not allowed.

config/packages/test/config.yaml has exactly that pattern, so the test kernel no longer boots: CliCommandTest fails on every run since DoctrineBundle 3 is resolved (first seen on #297, run 40673821870; the last green run on 2026-10-15 predates #19596). Core's default.yaml only sets url for the default connection, so the null overrides never did anything.

Same change as pimcore/pimcore 1b64d9a and the bundle PRs tracked in pimcore/platform-version#673; demo-enterprise gets it in pimcore/demo-enterprise#553.

Changes

File Change
config/packages/test/config.yaml drop host/port/dbname/user/password: ~ next to url

Verification

  • Checked against DoctrineBundle 3.3.3 Configuration::configureDbalDriverNode(): the old file fails the url conflict check, the new one passes. No effect on DoctrineBundle 2.
  • CI (test-pimcore-skeleton, full install + Codeception) is the runtime check for this PR.
  • Not run locally (no Docker on my machine).

🤖 Generated with Claude Code

…rineBundle 3)

DoctrineBundle 3 rejects host, port, dbname, user or password on a
connection that also defines url, even when the values are null.
Nothing sets those keys for the test connection, so dropping them has
no effect on DoctrineBundle 2.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@berfinyuksel berfinyuksel added the Skip Milestone Check Exempts this PR from the mandatory milestone requirement label Oct 28, 2026
@berfinyuksel
berfinyuksel merged commit 06e6fa3 into 2026.x Oct 28, 2026
6 of 7 checks passed
@berfinyuksel
berfinyuksel deleted the fix/doctrine-bundle-3-test-config branch October 28, 2026 11:03
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Skip Milestone Check Exempts this PR from the mandatory milestone requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant