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
It's works fine for /agreement-partners?include=partnerable
but i can't do this /agreement-partners?filter[partnerable][id]=01958f45-74ff-72af-9d72-6b081b485f9a
Although if I change the description of the relation in fields() to this
For an illustrative example. I have model AgreementPartner with fields entity_type, entity_id. I described morph relation with other models like this
In
Models/AgreementPartner
:In
AgreementPartnerSchema
i have:And in
AgreementPartnerResource
:It's works fine for
/agreement-partners?include=partnerable
but i can't do this
/agreement-partners?filter[partnerable][id]=01958f45-74ff-72af-9d72-6b081b485f9a
Although if I change the description of the relation in
fields()
to thisEverything will work and even add filters
filter[partnerable][]
for all related resources, despite the fact that now onlyCarrierSchema
is described.But it's seems like bug for me. Is there any other option for filtering by morph relation?
The text was updated successfully, but these errors were encountered: