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

Add deprecations for "table per class" inheritance #10423

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Jan 18, 2023

This complements #10414.

I don't see how the \Doctrine\ORM\Mapping\ClassMetadataInfo::INHERITANCE_TYPE_TABLE_PER_CLASS constant could be deprecated by itself, but this covers all places where it might reasonably be passed in.

@mpdude mpdude force-pushed the deprecate-table-type-per-class branch from 3694139 to a2736bb Compare January 18, 2023 07:44
@mpdude mpdude force-pushed the deprecate-table-type-per-class branch from e39c70f to d6a38b3 Compare January 18, 2023 08:59
@derrabus
Copy link
Member

Note that we don't do deprecations in bugfix releases. The PR needs to target 2.15.x. Also, please document the deprecation in the upgrade log.

@derrabus derrabus changed the base branch from 2.14.x to 2.15.x January 18, 2023 14:17
@derrabus derrabus changed the base branch from 2.15.x to 2.14.x January 18, 2023 14:18
@mpdude mpdude force-pushed the deprecate-table-type-per-class branch from d6a38b3 to 89b98bd Compare January 18, 2023 16:31
@mpdude mpdude changed the base branch from 2.14.x to 2.15.x January 18, 2023 16:31
@mpdude
Copy link
Contributor Author

mpdude commented Jan 18, 2023

Rebased and added a note to the upgrading document

<file name="lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php" />
<file name="lib/Doctrine/ORM/Tools/EntityGenerator.php" />
<file name="lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php" />
<file name="lib/Doctrine/ORM/Tools/SchemaTool.php" />
Copy link
Member

@greg0ire greg0ire Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remember to remove these after or during the merge up (and the one below as well)

@greg0ire greg0ire merged commit fc6feb5 into doctrine:2.15.x Jan 18, 2023
@greg0ire
Copy link
Member

Thanks @mpdude !

@@ -1,5 +1,15 @@
# Upgrade to 2.14
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mpdude woops! Wrong section!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#10428 to fix this (already merged here)

@greg0ire greg0ire added this to the 2.15.0 milestone Jan 18, 2023
mpdude added a commit to mpdude/doctrine2 that referenced this pull request Jan 19, 2023
@mpdude mpdude deleted the deprecate-table-type-per-class branch January 19, 2023 07:20
derrabus pushed a commit that referenced this pull request Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants