Question

So i have the following database situation:

Event has a link to many TroupeInfo, TroupeInfo has a sing link to TrouperCategory

As a test I created a controller for TroupeInfo, and it pulls back the correct trouperCategory entry, however if I run the controller for Event, it pulls back just the TroupeInfo dataset, but it does not run the TroupeInfo connection to TrouperCateogory, so my question is does cakephp not recursively pull back data, I am looking to get results like.

Event TroupeInfo Trouepr Category

Was it helpful?

Solution

You'll want to read about and use CakePHP's Containable Behavior.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top