F
Filament10mo ago
Pixl

Cast Problem on Pivot table together with RelationManager

I use a Repeater field in my RelationManager and have setup a Pivot class for this table which should cast the repeater field to an Array. Sadly whenever i want to edit the relation that i saved with repeater data to beforehand, it will give me the error "foreach() argument must be of type array|object, string given". I have casted it on the Pivot table, tried multiple ways on the merged Models aswell, it won't do anything. It's also wrongly casted via tinker, seen in the Screenshot.
No description
2 Replies
Pixl
Pixl10mo ago
Any hints, where i might have a look into? I think i was able to solve it after trying everything that doesn't stand in the documentation. Apparently i had to set it in the conncted Models only and without any dot notation which was rather confusing because the field is on the connector table.
MohammadAgbareya
I think I'm having the same issue, can you please elaborate the solution?