-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use Deprecation::triggerIfCalledFromOutside in listTableDetails #6086
Conversation
7861f13
to
7460dae
Compare
Had to force-push because my editor didn't save the change in MySqlSchemaManager |
The commit message should explain the reason behind this change. |
For the force-push? |
The second commit should be fixed up into the first one, but that's a detail. The first commit should explain why you are doing this (because these methods are still called internally, right?). |
Though listTableDetails is deprecated, it is still called internally. To avoid getting deprecation messages when called by other doctrine function, we can replace the use of Deprecation::trigger with Deprecation::triggerIfCalledFromOutside in the SchemaManagers. With the exception of SqliteSchemaManager, which already did this
7460dae
to
5e141d8
Compare
Got it, I've amended the commit with a more detailed explanation. |
Thanks @Aweptimum ! |
HI @Aweptimum, I just found the PR and I'm not sure it will solve all the deprecations: Currently I get
and
This PR will solve the first one, but there will still be the second one. The issue is that Do you or @greg0ire know how to solve the deprecation ? |
It seems each concrete schema managers' I understand the deprecations being in the public methods, but not in the protected methods. The solution might be to move the deprecation trigger out of But I'm very ignorant of the intentions here, there's really only this issue to go off of: #5284 I would wait for gregoire's input, but it is probably worth a new issue |
Yes, a separate issue please, with as many github permalinks as possible please. I don't want to have to click around 36 files to understand this.
🤔 no it does not: dbal/src/Schema/AbstractSchemaManager.php Lines 213 to 223 in 96d5a70
Only when |
My bad, I was confuse ; still I think I found a deprecation to solve #6104 ^^ |
Summary
Except for the Sqlite platform (which already used
triggerIfCalledFromOutside
), replaced the use ofDeprecation::trigger
withDeprecation::triggerIfCalledFromOutside
in the SchemaManagers