Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecate AbstractAsset::getName()#7094

Merged
morozov merged 6 commits intodoctrine:4.4.xfrom
morozov:deprecate-get-name
Aug 17, 2025
Merged

Deprecate AbstractAsset::getName()#7094
morozov merged 6 commits intodoctrine:4.4.xfrom
morozov:deprecate-get-name

Conversation

@morozov
Copy link
Member

@morozov morozov commented Aug 16, 2025

The logic of AbstractAsset::getName() is lossy. If the returned value contains a dot, it is not clear whether the dot is part of the name or a separator of the qualifier and the unqualified name.

The API being developed starting with #6646 is the proper way to deal with object names.

@morozov morozov added this to the 4.4.0 milestone Aug 16, 2025
@morozov morozov force-pushed the deprecate-get-name branch 2 times, most recently from 19200c1 to c3f3dfd Compare August 17, 2025 01:57
@morozov morozov marked this pull request as ready for review August 17, 2025 05:02
@morozov morozov requested review from derrabus and greg0ire August 17, 2025 05:02
Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

Should docs/en/reference/schema-manager.rst change? There are many occurrences of getName() in it.

greg0ire
greg0ire previously approved these changes Aug 17, 2025
@morozov morozov merged commit af03149 into doctrine:4.4.x Aug 17, 2025
90 checks passed
@morozov morozov deleted the deprecate-get-name branch August 17, 2025 17:09
@morozov morozov mentioned this pull request Aug 19, 2025
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.

2 participants