Buy Now
Sign in

var:read_data does not read other model

emrahsevgi , February 05 2019, 14:02
E
emrahsevgi 34
February 05 2019, 14:02 #383608
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
E
emrahsevgi 34
February 05 2019, 16:22 #383612
 1
 Answer
I solved on read_data function Relation conditions (Model1.field:Model2.field).
Thanks