Skip to content
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 Schema::getTableNames() #4812

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

morozov
Copy link
Member

@morozov morozov commented Sep 22, 2021

Q A
Type deprecation
BC Break no

The behavior of the method as it's documented is quite questionable:

Gets all table names, prefixed with a schema name, even the default one if present.

The DBAL doesn't implement schemas for most of the supported platforms but the table names are still prefixed with the PostgreSQL-specific "public" schema. There is already a getter for tables, so all the additional information can be obtained from there.

Additionally, using array keys of Schema::getTables() is being deprecated for the reasons described in #4777.

@morozov morozov marked this pull request as ready for review September 22, 2021 21:53
@morozov morozov requested a review from greg0ire September 22, 2021 21:53
@morozov morozov added this to the 3.2.0 milestone Sep 22, 2021
@morozov morozov force-pushed the deprecate-schema-get-table-namees branch from 6509b90 to 3f45d98 Compare September 27, 2021 01:21
@morozov morozov merged commit 09929a3 into doctrine:3.2.x Sep 27, 2021
@morozov morozov deleted the deprecate-schema-get-table-namees branch September 27, 2021 15:38
@morozov morozov mentioned this pull request Sep 30, 2021
1 task
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants