-
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
DBAL deprecation: AbstractPlatform::usesSequenceEmulatedIdentityColumns
is deprecated
#10744
Comments
Cc @ruudk |
The only way I can think of is making the behavior configurable. Either we continue checking, or we don't based on some boolean defined in the ORM config. |
This check is necessary to avoid breaking BC in the ORM (see that when this method returns What we need is to find a way to detect the cases non-deprecated case in a non-deprecated way, to avoid reporting a deprecation in that case. |
Do you mean reimplementing this with |
For what I found in the official documentation, the recommended way of generating Primary Keys with auto-generated values in PostgreSQL is
See: https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serial The strategy IDENTITY is neither providing this syntax nor usable thanks to deprecated-messages. Is there anything available that we don't need to patch Migration-Files manually? |
What we would need for PostgreSQL is updating the PostgreSQLPlatform to use the new way of creating identity columns for PostgreSQL 10+ |
@itinance I'm afraid you'll be stuck until |
I noticed the following deprecation report on my projects:
This is caused by
orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
Line 622 in b52a8f8
Is there a way to avoid this deprecation inside
ClassMetadataFactory
?The text was updated successfully, but these errors were encountered: