akeeba / fof

Rapid Application Development framework for Joomla!™ 3 and 4
0 stars 0 forks source link

Manage 1-N relation #587

Closed Eighke closed 8 years ago

Eighke commented 8 years ago

If getData return a normal model (1-N relation) the foreach is never triggered.

nikosdion commented 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 :)