Skip to content

docs: fix stale @doNotGenerate inheritance example (#5002)#662

Open
nicowalter256 wants to merge 1 commit into
serverpod:mainfrom
nicowalter256:fix-doNotGenerate-inheritance-docs
Open

docs: fix stale @doNotGenerate inheritance example (#5002)#662
nicowalter256 wants to merge 1 commit into
serverpod:mainfrom
nicowalter256:fix-doNotGenerate-inheritance-docs

Conversation

@nicowalter256

Copy link
Copy Markdown

Fixes #5002

This PR:

  • Splits the section into "hiding a method declared on the class itself"
    (unaffected) and "hiding an inherited method" (only works if the parent
    is fully @doNotGenerate, not just abstract)
  • Updates the example to use a @doNotGenerate-annotated parent, which
    still works because no client class is generated for it and there's no
    abstract contract to satisfy
  • Adds a warning explaining why an abstract-only parent doesn't support
    this pattern, and that a normal concrete parent still exposes the
    "hidden" method via its own generated client

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.

1 participant