質問

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

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top