Skip to content

Clean up Model::$delegate #51

@shmax

Description

@shmax

The Model::$delegate feature is either a little half-baked and missing tests, or so simple that they're not needed, but either way it seems to be using the array<mixed> type which raises difficulties for static analysis. It's also complicated by the inclusion of a processed property that is just written right into the middle of the list, necessitating lots of careful runtime checking.

TODO:

  • see if we can separate out processed
  • convert to a array<string, DelegateOptions> format, similar to what you see with things like Model::$has_many.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions