문제

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