-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Deprecation of EagerCursor #1675
Comments
You're implicitly using I've updated the broken link in the release. |
This is my code: $builder
->field(Ingredient::PROPERTY_ALLERGENS)->prime(true)
->field(Ingredient::PROPERTY_FAMILY)->prime(true)
; Are you telling me I should remove BTW I'm not using |
No. As I said before:
You're implicitly using it by calling Some background: previously, the However, somebody might check if the cursor returned by a query is an instance of I might also add that we're suppressing error output for the corresponding |
I'm happy to learn that Symfony is suppressing errors, but we are turning them into |
Yeah, that might be a good idea for
FWIW, we're doing pretty much the same thing Symfony does to maintain BC and make it easier for people to upgrade to new versions. Upgrading to a newer version of any Symfony component might also cause deprecation notices your app would convert to exception. This is your bug, not ours. |
I would argue that anything I cannot fix myself is not my bug. Thanks for your messages. I'm not sure we'll ignore |
Allow me to summarize:
Looks like we can't win this one:
Allow me to also point out that it is your decision as to how to deal with deprecation notices: you have to actively add code to see them, and even then these are purely informational messages designed to help you upgrade when it's time to do so. We're providing a tool - the usage is up to you. |
Understood. Thanks for your message. |
Same problem. @alcaeus you can mute the exception when it's used internally only. |
@malarzm it is still caught by the Symfony 3.4 using monolog level "info". The error can be muted if the cursor is constructed internally by the library, passing some flag from outer scope |
Hi,
Today I updated my dependencies and
mongodb-odm
was updated from1.1.6
to1.2.0
. Now I'm getting deprecation notices when I run my tests:The thing is I'm not using any of those in my code, so I'm not sure what I'm supposed to do here, and the UPGRADE file is not helping: https://github.com/doctrine/mongodb-odm/blob/master/UPGRADE-1.2.md
BTW the link to that document in the release note is broken: https://github.com/doctrine/mongodb-odm/releases/tag/1.2.0
The text was updated successfully, but these errors were encountered: