Skip to content

Conversation

@krzysztof-ciszewski
Copy link

Q A
Type improvement
BC Break yes
Fixed issues

Summary

Made public ClassMetadata have private setters. Will cause conflicts with #2935

@GromNaN
Copy link
Member

GromNaN commented Nov 28, 2025

Made public ClassMetadata have private setters. Will cause conflicts with #2935

Then lets merge #2935 and rebase your PR after.

* The name of the mongo database the document is mapped to.
*/
public $db;
public private(set) ?string $db = null;
Copy link
Member

@GromNaN GromNaN Nov 29, 2025

Choose a reason for hiding this comment

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

public is the default. I think our CS should be to not set it?

Suggested change
public private(set) ?string $db = null;
private(set) ?string $db = null;

@doctrine/maintainers WDYT?

@krzysztof-ciszewski krzysztof-ciszewski force-pushed the read-only-class-metadata-fields branch from 3d29ae9 to 274a709 Compare November 30, 2025 18:58
@krzysztof-ciszewski krzysztof-ciszewski force-pushed the read-only-class-metadata-fields branch from b1109c0 to 88dc22e Compare November 30, 2025 20:54
@GromNaN GromNaN added this to the 3.0.0 milestone Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants