Skip to content

cant overwrite resource methods #17

Description

@spacedevin
  • create a new model extending resource
  • create a function called create
  • call it
  • notice that the parent is called

Activity

  1. spacedevin commented on Aug 7, 2026

    @spacedevin
    MemberAuthor

    Triaged for Tipsy 2.0 (#57)

    Resource methods use the underscore + __call / __callStatic pattern (__create, etc.). Defining create() on a subclass correctly overrides without unexpectedly calling the parent. Covered by tests/Issue0025Test.php. Closing as fixed in 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriagedIssue reviewed against Tipsy 2.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions