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

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

Open
rneal-ck opened this issue Jan 4, 2022 · 0 comments · May be fixed by #166
Open

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

rneal-ck opened this issue Jan 4, 2022 · 0 comments · May be fixed by #166

Comments

@rneal-ck
Copy link

rneal-ck commented Jan 4, 2022

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.

@rneal-ck rneal-ck changed the title Attributable::relationsToArray doesn't return entity attributes Attributable::relationsToArray() doesn't return entity attributes Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant