$ expand parameter in datagrid

I have a table called objective that has id and name.
I have another table called risk that has id and name too.
As there is a many-to-many relationship, I created a table called objective_risk which has id (primary key), objective_id (foreign-key) and risk_id (foreign-key).
In datagrid, when configuring loaddata, I use in the parameter $ expand the values "Objective, Risk" so that I can see the names instead of the ids.
However, I only see the names in the "Objective" table. The names of the "Risk" table do not appear.erro_expand2 erro_expand

This article might help you:

1 Like