Repeater relationship failing as it returns null
I have this weird error - I have a relationship called "contributors" and a repeater block for my articles. The error is as below:
The error stems from this:
Note that if I remove the relationship() method, it works fine. And here's the relationship defined on my Article model:
I'm not sure what's going on here, as there's nothing wrong with that.
4 Replies
Nevermind, I looked at the error more closely - it was due to a poorly-defined relationship on a select dropdown. lol. Weird the error disappeard on that relationship removal though.... 🤔
Not trying to spam, but the solution for those searching for this is most likely the same or related to the scenario i posted here (Repeatable belongstomany with fields that map to pivot columns where one of them is a select that is related to something else): https://discord.com/channels/883083792112300104/1173585043592069191/1187040221917880320
I need a fresh link