-
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
Don't call deprecated getSQLResultCasing and usesSequenceEmulatedIdentityColumns when we know the platform #10759
Conversation
564c434
to
c90f161
Compare
Hi! Before you spend too much effort on this: I think this comment applies here too: no one should be using PHP 7 anymore, and the same holds true for DBAL 2. That being said, there are already a bunch of |
c90f161
to
de7c215
Compare
That's not the same. This covers the situation where DBAL v2 is used with ORM v2.15. Right now, ORM calls a deprecated API of DBALv2 while it can and thus should avoid doing so when possible, which is the case covered here. |
Ok well, you managed to get a green build anyway 👍 |
The rationale behind keeping the call was that the platform classes are in fact extension points in DBAL. You can override Your |
That's why I checked explicitly the platforms we know about: changing a child class won't change the behavior of the DB engine, so that there is nothing to allow customizing in this regard for the listed platforms. |
b390689
to
3f105a0
Compare
PR updated to also skip calling deprecated usesSequenceEmulatedIdentityColumns in ClassMetadataFactory |
3f105a0
to
55b061e
Compare
I agree and that's probably one of the reasons this method has been removed. I wonder if we can instead find a better way to silence that deprecation instead. |
Why would we need another way? We know the server's behavior => done. |
55b061e
to
1358ac1
Compare
(just rebased) |
1358ac1
to
a7023cb
Compare
210c43a
to
56db246
Compare
…tityColumns when we know the platform
56db246
to
0eedf91
Compare
Saves triggering the deprecation on PHP 7 where only DBAL v2 can be used: