Skip to content

__get prefers model data over relationships #23

@NiallSmyth

Description

@NiallSmyth

I'm not sure if this is something we should "fix", but there's a big gotcha when you've got data matching the name of a relationship in your model. The value in data will be returned, leaving you scratching your head about why you're not getting your relationship. This can happen when you're working with the data manually, or, perhaps more likely, when your model used to have a certain field and now it's been replaced by a relationship with the same name, but your existing database still has the old field.

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