Either use loadModel to add the model in question to what is directly available through $this, or use the TableRegistrty to get that model. Then run the query just as you have it.
Hi @Zuluru
i try TableRegistry::get(‘Jobcard’)->get($id) this one but i can get one model value. but i want to join another modal also. I bit confusion . Send the sample query get the two modal values
i try load modal also
$this->loadModel(‘Jobcard’);
This call is in your Job controller, not in the JobcardTable initialization function? If so, that’s why the association isn’t available in the other place. Just like it says " You have not defined the Enquiry association".