-
Notifications
You must be signed in to change notification settings - Fork 341
Add support for doctrine/orm 3 #7509
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
base: 2.6
Are you sure you want to change the base?
Add support for doctrine/orm 3 #7509
Conversation
@@ -61,7 +61,6 @@ | |||
"massive/search-bundle": "^2.8.2", | |||
"matomo/device-detector": "^3.9 || ^4.0.1 || ^5.0 || ^6.0", | |||
"nyholm/psr7": "^1.3", | |||
"oro/doctrine-extensions": "^1.0.8 || ^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.
Readd this when oro doctrine/lexer 3 support was merged.
Update Lexer 3 is supported on ^2 but ORM 3 only yet on master branch.
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.
3.0.0-beta works but stable version is not yet released of https://github.com/oroinc/doctrine-extensions
* | ||
* @return QueryBuilder | ||
*/ | ||
abstract public function createQueryBuilder($alias, $indexBy = null); |
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.
adding the return type here would a major BC Break making lot of bundles fail. So removing the abstract and move it to a phpdoc is only way for Backards compatibility to orm 2 based bundles.
05a258e
to
e9ccdb9
Compare
@@ -284,8 +283,7 @@ | |||
"@php bin/websiteconsole lint:container --env prod" | |||
], | |||
"lint-doctrine": [ | |||
"@php bin/adminconsole doctrine:schema:validate --skip-sync", | |||
"@php bin/adminconsole doctrine:ensure-production-settings --env prod" |
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 comment is not longer provided
With the latest changes support for doctrine orm 3 dbal 4 and persistence 4 would be the only dependencie of use which are not yet uptodate by
The |
bfc96be
to
e391663
Compare
Looks like we can not longer mock Repositories depending on gedmo nested tree repository 🙈 :
Deeper analyses this is connected to phpspec/prophecy#535 Which so currently make some bundles fail: |
8367f18
to
c692040
Compare
c692040
to
6f97169
Compare
What's in this PR?
Add support for doctrine/orm 3.
Most of the changes cherry picked into https://github.com/sulu/sulu/pull/7857/files to prepare doctrine/orm 3 changes soonish.
Why?
A new version of orm was released and we should try to keep Sulu uptodate.
TODO