Closed Eighke closed 8 years ago
In this case you're supposed to use the Model field, not the Relation field. As I have already documented this:
This field is designed for use with many-to-many (BelongsToMany) relations. For the other relation types you should use the Model Field.
I think the documentation is crystal clear :)
If
getData
return a normal model (1-N relation) the foreach is never triggered.