-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
allow doctrine/persistence v2 #635
Comments
This module is my responsibility. I think updating that dependency would be fine and I'll look into it. |
thanks! say something if you want any help. |
Here is a similar PR: doctrine/DoctrineBundle#1181 that you can use as a source of inspiration :) |
Thanks, greatly appreciated! |
There will be a number of steps to make this happen
I'll update this list as needed. |
I haven't really looked into it, yet, but with the forward compatibility layer in doctrine-persistence |
Inspect the composer.json for doctrine-module 4.1. That branch is just for 2.8 compatibility. |
As you can see orm 2.7 does not supporrt inflector 2. The work on doctrine-module 4.1.x was done in anticipation of the next major release of orm. You're correct that you cannot use doctrine-module 4.1.x but neither can the orm; so what is it you're trying to do? Problem 1 |
@rieschl in your original post you say
To what version are you trying to update doctrine-module? |
Nothing in particular. I was just doing a |
Will not address at this time. The |
Sorry, I think I didn't express myself correctly. |
When a non-beta version of orm requires updates they will be made here at that time. |
@TomHAnderson nudging this one since doctrine 2.8 was just released resulting in a downgrade to
|
@TomHAnderson I think this is now really a big bug: Since the requirement for persistance ^1.3 was introduced with doctrine-orm-module 3.0.6 and earlier releases did not have such a requirement at all, the downgrade mentioned by @rtek occurs. We should fix this as soon as possible, since unexpected errors may occur when downgrading to a version which does specify any persistance version at all. Shall I create a new ticket or will you re-open this one? (Why was this ticket actually closed at all?) |
@driehle , @rtek , Thanks for being on top of the persistence requirement. I have a problem with Persistence v2 that all namespaces have changed (the Common has been dropped). There are two maintained branches here: 3.0.x & 3.1.x; The difference is 3.1.x has Migrations v3. If I change all the namespaces in this repo to match the latest persistence then it causes a problem with versioning. 3.1.x would move to 3.2.x. I am leaning towards only supporting persistence v2 in 3.1.x (and change to 3.2.x) so support for persistence v1 will continue in the 3.1.x branch. That of course means all users upgrading to persistence v2 will require an upgrade of migrations too. That migrations upgrade is a configuration change, IMHO. So I'm comfortable moving 3.1.x to 3.2.x and dropping support for 3.0.x. I'd love to hear your opinions on this change. |
Nevermind all that; 1.3.3^ supports the new namespace |
That's what I meant, initially ^^ Sorry if I didn't express myself correctly. -> Require at least I think I already have a branch with those changes (but probably not up to date), if you like to have a PR. |
Support for persistence 2.0 added in https://github.com/doctrine/DoctrineORMModule/releases/tag/3.0.9 and https://github.com/doctrine/DoctrineORMModule/releases/tag/3.1.2 |
@TomHAnderson - I'm still having trouble getting Sorry for bringing the other repo into this, but this seemed most relevant to this discussion as users of the orm module. I'm trying to avoid locking at
|
@rtek See my comment doctrine/DoctrineModule#723 (comment) for background in this. Early versions of DoctrineModule were lacking the requirement of persistence at all, which is why now you experience being downgraded to quite old versions. 4.0.2 is not compatible with persistence 2.0, it simply lacks the requirement of persistence 1.3. You should, for now, run a |
This library currently requires
doctrine/persistence
^1.3
but not^2.0
.This prevents updating
doctrine/doctrine-module
and thus also prevents upgradingdoctrine/common
tov3
.Could the constraint be loosened to allow
^1.3 || ^2.0
?Is anyone on that?
The text was updated successfully, but these errors were encountered: