Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Upgrade to Symfony 2.8 #573

Merged
merged 1,894 commits into from
Dec 17, 2015
Merged

Upgrade to Symfony 2.8 #573

merged 1,894 commits into from
Dec 17, 2015

Conversation

danrot
Copy link
Contributor

@danrot danrot commented Dec 17, 2015

tasks:

Replaces #466

  • test coverage
  • submit changes to the documentation

informations:

q a
Fixed tickets fixes sulu/sulu#1255
Related PRs sulu/sulu#1883
BC breaks All introduced by Symfony 2.8
Documentation PR none

@danrot danrot force-pushed the feature/symfony2.8 branch from 591c0c4 to f2549bf Compare December 17, 2015 07:33
This was referenced Dec 17, 2015
@danrot danrot force-pushed the feature/symfony2.8 branch 2 times, most recently from 919d60c to 101b31c Compare December 17, 2015 07:54
@danrot danrot force-pushed the feature/symfony2.8 branch from 101b31c to 2d178e6 Compare December 17, 2015 08:03
# 3. Uncomment next line:
# path: "%database_path%"

server_version: 5.6
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason this is necessary... @cbastienbaron has tracked that down to this doctrine issue: doctrine/dbal#990

I've also found the following issue, where this solution is suggested as a workaround, until they've fixed the problem: doctrine/DoctrineBundle#351

But on the other hand it is really bad, because it couples us to a specific DB version 😞

/cc @chirimoya @wachterjohannes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep i'm not very happy with this workaround ... one solution is to downgrade doctrine/dbal to 2.4* but also doctrine/orm whitch is required on 2.5 on composer.json make conflict beetween doctrine/orm 2.5 and doctrine/dbal 2.4 😭 or downgrade too doctrine/orm to 2.4 ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that we upgraded to doctrine 2.5 some time ago, because doctrine 2.4 had another bug which caused problems 😕

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least the configuration should be moved to the parameters.yml, because it is installing specific.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes moved to parameters.yml can be the best solution 👍 , with a default value (ex 5.1), so dev can start project without being nuts about his mysql serv version

Quotes always from doctrine/dbal#990

Well, my version is 5.5 so I originally used that. Today I tried 5 and 52 and 1 and they all worked!
so it seems that the actual_ version doesn't matter (at least when I need them, which is *before I've actually set up the DB credentials) as long is there is _some value*.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've decided that it's not acceptable like this... We probably at least have to introduce a parameter, which goes into paramaters.yml.dist, so that it can be set by the installation. We also have to remember to remove this afterwards. I'll add this into this PR.

@danrot
Copy link
Contributor Author

danrot commented Dec 17, 2015

Some tests are still failing, but I've got the feeling it was already like that before, and is not related to this upgrade. I am not sure if it's caused by the error in the preview:
image

@chirimoya chirimoya merged commit 4ab6641 into develop Dec 17, 2015
@chirimoya chirimoya deleted the feature/symfony2.8 branch December 17, 2015 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Symfony 2.7 update
9 participants