var:read_data does not read other model

How to resolve var:read_data not reading related models in a table view.

Overview

The issue occurs when the read_data function does not properly load data from related models due to missing relation conditions.
Define the relation conditions within the read_data function by specifying the field mappings between the primary and related models.

Answered
Connectivity v6
em emrahsevgi 05 Feb, 2019
hi again.

I have 1 read_data function with 3 model. that models names are case, applicant, party (I wrote here in English). I have a table view and I defined {var:read_data} in data provider. Columns list is:
case.case_id:ID
case.case_no:Case No
applicant.aplicant_name:Applicant
party.name:Party

"applicant.aplicant_name:Applicant" and "party.name:Party" column shown empty.
[read_data] => Array
is reading all of model. But

[var] => Array
                (
                    [0] => Array
                        (
                            [case] => Array
                                (
is reading only model of case. It does not read other 2 model.

Why and how can I solve it?

thank you
em emrahsevgi 05 Feb, 2019
Answer
1 Likes
I solved on read_data function Relation conditions (Model1.field:Model2.field).

Thanks
This topic is locked and no more replies can be posted.