-
-
Notifications
You must be signed in to change notification settings - Fork 921
fix error when disabling eager_loading #1581
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
fix error when disabling eager_loading #1581
Conversation
@@ -412,8 +412,10 @@ private function registerDoctrineExtensionConfiguration(ContainerBuilder $contai | |||
return; | |||
} | |||
|
|||
$container->removeDefinition('api_platform.doctrine.orm.query_extension.eager_loading'); | |||
$container->removeDefinition('api_platform.doctrine.orm.query_extension.filter_eager_loading'); | |||
$container->removeAlias('api_platform.doctrine.orm.query_extension.eager_loading'); |
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.
It should be the inverse IIUC.
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 is because of #1557 !
You should remove the alias EagerLoadingExtension::class
(please use this instead of the string) and remove the definition by it's id indeed.
Nice catch!
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.
You are right, I misread the error message, the problem is on the alias. I'm fixing it right now
9edb56f
to
b232a73
Compare
I'm merging 2.1 there are a bunch of conflicts I'll let you know when ready. |
b232a73
to
b9c9fa6
Compare
Introduced by d3b690e
b9c9fa6
to
a502622
Compare
Though you were on master my bad! |
…gerLoading fix error when disabling eager_loading
Introduced by d3b690e