-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Prevent doctrine/dbal 2.5 from installing #774
Conversation
Currently, an incompatibility between ORM 2.4 and DBAL 2.5 causes the post-install-cmd steps to fail in the prod env. Until a fix is out, it's best to stick to 2.4 for both, so a standard edition project deploys successfully.
If there is an incompatibility it must be correctly described in the composer.json of doctrine/orm, not here. |
there is no incompatibility between ORM 2.4 and DBAL 2.5. The only issue we have is that symfony-standard does not specify a server version in its DoctrineBundle config, meaning that DBAL 2.5 will try to connect to the DB to guess the version. |
which server version do you want to configure? you cannot know which is used by users. so you could only put a random one in there. |
@Tobion given that we configure it for MySQL in the config by default, I would suggest using |
Sorry, this was phrased wrong. It's not an incompatibility, it's merely that DBAL 2.5 wich needs the platform configured has already been released, and the version selector in ORM 2.4 installs it. Also see #775 which would have prevented this sudden breakage in the first place :) |
Hi guys! I thought about adding But I've opened up a PR to fix the root issue: doctrine/dbal#783 Thanks! |
@weaverryan the issue is that auto-detecting it requires being able to connect to the DB, and the ORM currently triggers the guessing too early |
We need a solution now as I'm going to release Symfony 2.3.25 today, with a composer.lock file. Avoiding the usage of DBAL 2.5 looks like the "best" thing to do for now as the "proper" fix is till under discussion on Doctrine/DBAL and Doctrine/ORM. |
I completely agree. I think the fix will come somewhat soon (I have a PR), but no reason to wait - I'll create a PR here later when the issue is resolved to go back to DBAL 2.5. Thanks! |
Thank you @dzuelke. |
This PR was merged into the 2.3 branch. Discussion ---------- Prevent doctrine/dbal 2.5 from installing Currently, an incompatibility between ORM 2.4 and DBAL 2.5 causes the post-install-cmd steps to fail in the prod env. Until a fix is out, it's best to stick to 2.4 for both, so a standard edition project deploys successfully. Commits ------- acd2c33 Prevent doctrine/dbal 2.5 from installing
Can someone who initially worked on this verify that this version restriction is still needed? EDIT: nvm, someone is working on this. See #800 |
@@ -9,7 +9,8 @@ | |||
"require": { | |||
"php": ">=5.3.3", | |||
"symfony/symfony": "2.3.*", | |||
"doctrine/orm": "~2.2,>=2.2.3", | |||
"doctrine/orm": "~2.2,>=2.2.3,<2.5", | |||
"doctrine/dbal": "<2.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is wrong isn't it? It allows versions like 2.1.x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GrahamCampbell I think because of doctrine/doctrine-bundle 1.2.*
it’s >=2.2
: https://packagist.org/packages/doctrine/doctrine-bundle#v1.2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's generally a bad idea to rely on such resolutions as they may change in the future.
Currently, an incompatibility between ORM 2.4 and DBAL 2.5 causes the post-install-cmd steps to fail in the prod env.
Until a fix is out, it's best to stick to 2.4 for both, so a standard edition project deploys successfully.