I've got two datasources A and B with a foreign key relationship between them, say that dataSource B contains:
So in dataSource B I can include fields from dataSource A:
given that I need to include many (actually all) fields of dataSource A, is there a way to include them all, based on the fk relationship?
the documentation for DataSource.inheritsFrom says:
so at first I thought I could use it, but it doesn't works this way.
Code:
<field name="fk" foreignKey="A.id" joinType="outer"/>
Code:
<field name="includedField" includeFrom="A.field1" includeVia="fk"/>
the documentation for DataSource.inheritsFrom says:
Code:
... This feature can be used for: ... - modeling relational database joins, and the equivalents in other systems
Comment