-
Notifications
You must be signed in to change notification settings - Fork 379
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 to use Doctrine/Persistence:^2 #1305
Conversation
jkabat
commented
Oct 29, 2020
Q | A |
---|---|
Branch? | 2.0 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
License | MIT |
$omClassName = LegacyObjectManager::class; | ||
} elseif (interface_exists(ObjectManager::class)) { | ||
$omClassName = ObjectManager::class; | ||
} else { | ||
$this->markTestSkipped('Requires the doctrine/orm package.'); |
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.
As doctrine/orm
is in require-dev
it will always be installed when running tests.Therefore you can remove the else
statement.
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.
done.
composer.json
Outdated
@@ -35,6 +35,7 @@ | |||
"aws/aws-sdk-php": "^2.4", | |||
"doctrine/cache": "^1.1", | |||
"doctrine/orm": "^2.3", |
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.
I think this require-dev
entry is useless. There isn't any code in this bundle which depends on Doctrine\\ORM
!
We should remove it and keep doctrine/persistence
as the true optional dependency thus we only provide an AbstractDoctrineLoader
to help developers to implement their own doctrine ORM/ODM loader.
I just merged #1337 |
Could you rebase? #1337 replaced the |
@fbourigault Ill do that today/tomorrow. |
2cd9a7d
to
949996d
Compare
rebased and fixed based on suggestions |
thank you! |