Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

Attributable::relationsToArray() doesn't return entity attributes  #165

@rneal-ck

Description

@rneal-ck

In Attributable::relationsToArray(), the entity attributes for a model are only added to $eavAttributes if they exist in the array returned by parent::relationsToArray() (from HasAttributes), however, HasAttributes::relationsToArray doesn't know about the entity attributes, so the check always fails, causing the entity attributes to not be included when converting to JSON.

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