Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top