Skip to content

Allow Doctrine ORM 4 on the 4.0.x branch#2227

Closed
wtorsi wants to merge 1 commit into
doctrine:4.0.xfrom
wtorsi:lift-orm-4-conflict
Closed

Allow Doctrine ORM 4 on the 4.0.x branch#2227
wtorsi wants to merge 1 commit into
doctrine:4.0.xfrom
wtorsi:lift-orm-4-conflict

Conversation

@wtorsi
Copy link
Copy Markdown

@wtorsi wtorsi commented May 4, 2026

The 4.0.x branch already requires doctrine/dbal: ^4.0 and doctrine/persistence: ^4, signalling that this branch tracks the ORM 4 release line. However the conflict entry still blocks doctrine/orm >=4.0, which prevents installing this branch alongside doctrine/orm: ^4.0@dev.

This PR lowers the conflict's upper bound so the branch can be installed with ORM 4-dev. The lower bound <3.0 is preserved.

Tested locally: with this change applied, composer update resolves cleanly for a Symfony bundle requiring doctrine/orm: ^4.0@dev together with doctrine/doctrine-bundle: dev-4.0.x. Composer installs doctrine/orm 4.0.x-dev, doctrine/dbal 4.4.x, and doctrine/persistence 4.2.x (all stable except orm).

Happy to adjust if maintainers prefer <3.0 || >=5.0 (orm 3 + 4 only) or the line removed entirely.

The 4.0.x branch already requires `doctrine/dbal: ^4.0` and
`doctrine/persistence: ^4`, signalling that this branch tracks the ORM 4
release line. However the `conflict` entry still blocks
`doctrine/orm >=4.0`, which prevents installing this branch alongside
`doctrine/orm: ^4.0@dev`.

Lower the conflict's upper bound so the branch can be installed with
ORM 4-dev. The lower bound `<3.0` is preserved.
@stof
Copy link
Copy Markdown
Member

stof commented May 4, 2026

an upper bound should be kept

@greg0ire
Copy link
Copy Markdown
Member

greg0ire commented May 4, 2026

The 4.0.x branch already requires doctrine/dbal: ^4.0 and doctrine/persistence: ^4, signalling that this branch tracks the ORM 4 release line.

We do not keep major version numbers in sync across libraries. ORM 4 might allow DBAL 5

@wtorsi
Copy link
Copy Markdown
Author

wtorsi commented May 4, 2026

Thanks @stof @greg0ire! Any ideas how to test doctrine/orm 4 in this case?

@greg0ire
Copy link
Copy Markdown
Member

greg0ire commented May 5, 2026

By bumping the upper bound to 5?

@ostrolucky ostrolucky closed this May 19, 2026
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.

4 participants