Try to describe your problem with real model names and what are you trying to achieve. For example first table is probably the users table...and a User has something that is in your table2....so try to build up a story and write it here.
Oct 3, 2017
5
Level 1
one-to-many-to-one relationship
There are 3 tables. table1 and table2 are of one to many relationship. table2 and table3 are of many to one relationship. I want to get the corresponding table3 data for the table1 row using 'with'.
I have connected (table1 and table2) and (table2 and table3) in the model. I tried accessing with the function name of the relationship. But getting function undefined error.
The same method works fine for one-to-one-to-one.
Please help me to solve this.
Please or to participate in this conversation.