You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
rneal-ck
changed the title
Attributable::relationsToArray doesn't return entity attributes
Attributable::relationsToArray() doesn't return entity attributes
Jan 4, 2022
In
Attributable::relationsToArray()
, the entity attributes for a model are only added to$eavAttributes
if they exist in the array returned byparent::relationsToArray()
(fromHasAttributes
), 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.The text was updated successfully, but these errors were encountered: