Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Doctrine deps #373

Closed
wants to merge 2 commits into from
Closed

Doctrine deps #373

wants to merge 2 commits into from

Conversation

stof
Copy link
Member

@stof stof commented Jul 25, 2012

This bumps the Doctrine dependency to 2.3 (which is also in beta currently) as it should be stable when we release 2.1, has some nice new features and fixes the issue with getManagerForClass (symfony/symfony#4966)
Looking at symfony 2.0 which continue to ship Doctrine 2.1 even if it does not even receive bug fixes anymore (only security fixes), it would be a shame to ship Doctrine 2.2 with Symfony 2.1 by default.

@fabpot
Copy link
Member

fabpot commented Jul 25, 2012

Do you have any ETA for Doctrine 2.3? ping @beberlei

@beberlei
Copy link
Contributor

@fabpot not a final one yet, but within august is planned.

@webmozart
Copy link

Shouldn't this update also be done in TwigBridge's composer.json and Symfony's main composer.json?

@stof
Copy link
Member Author

stof commented Jul 25, 2012

@bschussek Symfony already allows both 2.2 and 2.3

@webmozart
Copy link

Sure, but shouldn't it require 2.3?

@stof
Copy link
Member Author

stof commented Jul 25, 2012

well, nothing is broken with 2.2 (you simply cannot use the aliased class name for the class option in your forms). I think @beberlei wants to keep the 2.2 compatibility (even if I would consider 2.3 as highly recommended)

@webmozart
Copy link

I would clearly call this a BC break. Aliased class names used to work, now they don't.

@fabpot
Copy link
Member

fabpot commented Jul 26, 2012

What's the point of still supporting 2.2?

@stof
Copy link
Member Author

stof commented Jul 26, 2012

@beberlei Can you give your reason for this ?

@beberlei
Copy link
Contributor

You can use Doctrine 2.2 stable with Symfony master since january now, i don't want to force people to upgrade their doctrine dependency if they don't have to.

@michaelcullum
Copy link

Why not just use >=2.2 in the composer.json?

@fabpot
Copy link
Member

fabpot commented Jul 26, 2012

2.3 is not compatible with 2.2? Symfony 2.1 is not stable yet, so I don't see why we should support an older version of Doctrine.

@beberlei
Copy link
Contributor

2.3 and 2.2 are compatible, the only thing thats not compatible are the changes bernhard did in the forms, and respectively a fix in doctrine that was only done for 2.3 - @stof can we merge that manager registry fix to 2.2 as well? albeit only for 2.2.3 - but at least.

@stof
Copy link
Member Author

stof commented Jul 26, 2012

@unknownbliss 2 reasons:

  1. an unbound constraint is a bad idea (we cannot ensure that the current code works for Doctrine 3, so we should not allow it in the constraint)
  2. We don't want to distribute 2.3 in the SE as it would lead to a regression in forms (DoctrineBundle and Symfony still allow 2.2 so you can change the constraint to 2.2.* if you want.

@beberlei yes we could backport it to 2.2 (I even mentioned it in my PR)

@beberlei
Copy link
Contributor

@stof sorry, my oversight.

@dlsniper
Copy link

@stof wouldn't it be better if we have support only for 2.3 and fix the regressions that appear in the forms component? Also what is that regression about? Maybe someone will be able to fix it as it would totaly make sense to distribute SF2.1 with Doctrine 2.3 rather that 2.2 imho.

@webmozart
Copy link

@dlsniper A bug in the form component (symfony/symfony#4125) was fixed by using getManagerForClass() (symfony/symfony#4953), which does not support everything we need and thus causes the regression (symfony/symfony#4966). We cannot change getManagerForClass() without changing Doctrine.

@beberlei
Copy link
Contributor

There is a difference between shipping with something by default and supporting more.

As stated before, 2.2 is stable for half a year now, why force users to upgrade to 2.3 if it is not really necessary.

Doctrine 2.2 can be used with symfony 2.0 already. Supporting 2.2 in s2.1 aswell would take one big variable out of the upgrade process for some people.

SE should point to 2.3 since it is for new projects, but the core shouldnt just bump dependemcies so eagerly imho.

Am 27.07.2012 um 08:08 schrieb Florin [email protected]:

@stof wouldn't it be better if we have support only for 2.3 and fix the regressions that appear in the forms component? Also what is that regression about? Maybe someone will be able to fix it as it would totaly make sense to distribute SF2.1 with Doctrine 2.3 rather that 2.2 imho.


Reply to this email directly or view it on GitHub:
#373 (comment)

@beberlei
Copy link
Contributor

I will fix the getmamagerforclass in 2.2.3 as well. So that will be taken care of.

Am 27.07.2012 um 08:27 schrieb Bernhard [email protected]:

@dlsniper A bug in the form component (symfony/symfony#4125) was fixed by using getManagerForClass() (symfony/symfony#4953), which does not support everything we need and thus causes the regression (symfony/symfony#4966). We cannot change getManagerForClass() without changing Doctrine.


Reply to this email directly or view it on GitHub:
#373 (comment)

@webmozart
Copy link

Awesome, thanks Benjamin! So this PR should actually be to update all dependencies to >=2.2.3 in the Standard Distribution and Symfony Core.

@fabpot
Copy link
Member

fabpot commented Jul 27, 2012

@stof Can you update this PR accordingly?

Also, can someone make a PR on symfony/symfony to update Doctrine wherever needed?

@stof
Copy link
Member Author

stof commented Jul 27, 2012

@fabpot do you want this PR to state >=2.2.3,<2.4-dev or do you want to ship with 2.3 in the SE ? @beberlei said SE should point to 2.3 since it is for new projects

@fabpot
Copy link
Member

fabpot commented Jul 27, 2012

using >=2.2.3,<2.4-dev is fine by me as Composer will install the latest possible version and that's what we will have therefore in the lock file.

@vicb vicb mentioned this pull request Jul 31, 2012
fabpot added a commit that referenced this pull request Jul 31, 2012
Commits
-------

793a21a Updated the lock file
59fdaeb Bumped Doctrine to 2.2.3

Discussion
----------

Doctrine deps

based on #373 from @stof integrating the feedback

---------------------------------------------------------------------------

by stof at 2012-07-31T14:53:00Z

:+1:

And the requirement on 2.2.3+ should be changed in symfony too instead of >=2.2

---------------------------------------------------------------------------

by vicb at 2012-07-31T15:00:23Z

@stof that's symfony/symfony#5127. Thanks for your help.
@fabpot fabpot closed this Jul 31, 2012
@stof stof deleted the doctrine_deps branch February 15, 2018 11:26
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.

6 participants