-
Notifications
You must be signed in to change notification settings - Fork 440
Fix DoctrineConnectionFactoryFactory due to doctrine/common changes #1089
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
Conversation
Fix php-enqueue#1085 - Fix to be compatible with doctrine v3 . Since Doctrine v3, seems some changes with doctrine/common
@kdefives It will probably be fine just replacing the old interface with the new one, but we should probably also add |
@Steveb-p I think it is recent because i started to developed my application 18 days ago and everything worked perfectly until yesterday when i executed a "composer update". Hope it will help you. |
@kdefives Anything before that will break, because |
@Steveb-p Sorry i did not understand what you mean. When you say "Simple solution would be to mark doctrine/persistence < 1.3.0 as conflicting.". Do you mean here : https://github.com/kdefives/enqueue-dev/blob/patch-1/composer.json ? Because i tried to add this line in my composer.json of my application but i still have the issue: "conflict": {
"symfony/symfony": "*",
"doctrine/persistence": "<1.3.0"
}, My application is working perfectly if i change this line "doctrine/doctrine-bundle": "^2.1", by this line "doctrine/doctrine-bundle": "v2.1.0", Then, when i execute composer update i can see the downgrade: Package operations: 0 installs, 3 updates, 0 removals
- Downgrading doctrine/persistence (2.0.0 => 1.3.8): Loading from cache
- Downgrading doctrine/doctrine-bundle (2.1.1 => 2.1.0): Loading from cache
- Downgrading doctrine/common (3.0.2 => 2.13.3): Loading from cache |
@kdefives I'm specifically saying that switching Marking as conflicting is an easy way out of the problem, however providing compatibility layer is a better solution (especially since persistence 1.3 is 9 months old). |
Add conflict "doctrine/persistence": "<1.3.0"
I did changes but there are still issues with test classes (as you can see the checks failed). I do not think to have enough time to work on it so if someone can finish this PR, feel free. Moreover, I think it could be useful for other people who starts new Symfony project. Until new release with this fix, I fixed doctrine-bundle version as explained below, in my project. Thx again for your help. |
any news regarding that one? |
any news? |
What news about this PR? |
I have created a follow-up PR (#1105) for this PR. hopefully, it will be merged soon |
Fix #1085 - Fix to be compatible with doctrine v3 . Since Doctrine v3, seems some changes with doctrine/common