Skip to content

Use of self:: break subclassing #17

Description

@njt1982

Lines like https://github.com/fullfatthings/entity_decorator/blob/master/entity_decorator.module#L105 which use self:: mean that if I subclass EntityDecorator, these methods will still use the super class method such as getFinder(). My subclass defined its own finder (which is a subclass of EntityDecoratorFinder; I needed a "filterBy" rather than "findBy"), however the use of self:: meant by subclass method for getFinder was never called.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions