Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DoctrineBridge] Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3 #59185

Open
wants to merge 5 commits into
base: 6.4
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Dec 11, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

Doctrine Bridge dropped support of persistence 2 from 6.3 to 6.4 but I could not yet find out why. (0d4e2b8). It making lot of things harder and get projects stuck on 6.3 which can not yet update doctrine/persistence because of some bc breaks (mostly Bundle:Entity syntax). It makes also eco system a little bit harder (doctrine/DoctrineBundle#1841, doctrine/DoctrineFixturesBundle#486, https://github.com/sulu/sulu/actions/runs/12050408254/job/34248387939) as with some changes in symfony and doctrine bundles things get downgraded to symfony 5.4 instead keep in 6.3. If there is any easy way to support persistence 2.5 still on 6.4 bridge I think things would get easier.

Want with this PR check what fails on the CI if still allow persistence 2.5.


Update: Looks like with a few checkst we could get lowest run on persistence 2.5 which would so make easier projects upgrade to Symfony 6.4 without they have to tackle the persistence update in the same case.

@carsonbot
Copy link

Hey!

To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done?

Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review.

Cheers!

Carsonbot

@stof
Copy link
Member

stof commented Dec 11, 2024

Simply allowing 2.5 is unlikely to report actual breakages: the CI will install the highest compatible version, and so will keep installing version 3

@alexander-schranz
Copy link
Contributor Author

alexander-schranz commented Dec 11, 2024

@stof there is Unit Tests / Unit Tests (8.2, low-deps) which installs lowest dependency with persistence 2.5.

Bildschirmfoto 2024-12-11 um 17 56 24

Without the latest commit you see it did fail as 2.5 was installed: https://github.com/symfony/symfony/actions/runs/12280919774/job/34268515843?pr=59185

With a few line of changes I think may can catch that issue but need to invest.

@alexander-schranz alexander-schranz changed the title Find out what breaks on Doctrine persistence 2.5 Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3 Dec 11, 2024
@alexander-schranz alexander-schranz marked this pull request as ready for review December 11, 2024 17:23
@carsonbot carsonbot added this to the 6.4 milestone Dec 11, 2024
@alexander-schranz
Copy link
Contributor Author

alexander-schranz commented Dec 11, 2024

With some version check in the tests it seems a way we could still support the persistence 2.5 version:

Bildschirmfoto 2024-12-11 um 18 25 44

Other CI errors seems be unrelated.

@carsonbot carsonbot changed the title Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3 [DoctrineBridge] Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3 Dec 11, 2024
@xabbuh
Copy link
Member

xabbuh commented Dec 12, 2024

ping @nicolas-grekas as you bumped the requirement in 0d4e2b8

@alexander-schranz
Copy link
Contributor Author

Let me know if there is anything else here I should check.

@alexander-schranz alexander-schranz force-pushed the enhancement/doctrine-persistence-2 branch from 0a6a5ab to f3e5dea Compare December 19, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants