-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Deprecate reliance on non-optimal defaults #8931
Conversation
@derrabus I'm a bit unfamiliar with symfony recipes, would it be possible to add a configuration key iff the platform family is |
No, but you could add a piece of configuration and comment it out. That would make it discoverable. That being said, how do we want to leverage this setting in DoctrineBundle? I'd imagine it would be something like this: doctrine:
orm:
identity_generation_preferences:
oracle: identity
postgresql: identity And that block is something we could add as-is to the recipe. If an application would use e.g. MySQL, those settings would just become no-ops. |
Yes that's how I imagine it should look like (except |
I believe the current set of
It seems to me that each of the aspects should be represented by a separate abstraction at the ORM level. Mixing them together makes it challenging to reason about. |
d5ee212
to
aaa9f9e
Compare
I'm resuming this… indeed, there is a mix of concerns here. It's not clear to me however how to fix it or whether it should block this PR (which does introduce more usage of these constants). |
7c5a4c4
to
ce1afaa
Compare
What was optimal 10 years ago no longer is, and things might change in the future. Using AUTO is still the best solution in most cases, and it should be easy to make it mean something else when it is not.
@greg0ire Thanks for all the work and I understand the reasoning. I do think the deprecation is a bit to opmisticly implemented. As for a As a shortcut I would add the correct strategy |
You still probably have access to the configuration object though, right? Maybe in |
What was optimal 10 years ago no longer is, and things might change in
the future. Using
AUTO
is still the best solution in most cases, and itshould be easy to make it mean something else when it is not.
Closes #8893, and maybe we should close doctrine/dbal#5614 as well.