-
Notifications
You must be signed in to change notification settings - Fork 87
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
Incompatible with doctrine/persistence 3.x #135
Comments
It seems that removing the registration of aliases in |
After testing, it is working if you don't install the last doctrine ORM 2.14.2 released on 2023-04-12 Use "doctrine/orm": "2.14.1" in composer But I don't unserstand which part of the change is rising the error : #135 |
It's oauth2-server-bundle/src/DependencyInjection/CompilerPass/RegisterDoctrineOrmMappingPass.php Line 23 in ff14fe0
|
@bjo3rnf is correct. This is the pull request that introduced the missing throw, which should have been there for quite some time already. I believe the line can indeed be removed safely. See #137 for the PR to fix this. |
This PR was merged into the 0.4-dev branch. Discussion ---------- Remove deprecated registration of entity namespace Registration of entity namespaces has been deprecated in doctrine/persistence 2.x and prevents usage of the bundle in combination with doctrine/persistence 3.x. This patch addresses #135 Commits ------- f634b1f Remove deprecated registration of entity namespace
@chalasr Thank you very much for the merge. Would it be possible to have a new release permitting to avoid the doctrine incompatibility? |
Of course yes! I just forgot to push the tag. Here you go https://github.com/thephpleague/oauth2-server-bundle/releases/tag/v0.5.0 |
Hi,
after running
composer update
on my Symfony 5.4 app I getIs there anything I can do on my side except for downgrading doctrine/persistence to 2.5.7 (the last 2.x version I think)?
Thanks a lot for your help.
Cheers
Björn
PS: Same goes for a fresh install in Symfony 6.2
The text was updated successfully, but these errors were encountered: