Reputation: 2924
I've got a CAkePHP 1.2 site. I've got three related Models/tables: A Comment has exactly one Touch, a Touch has exactly one Touchtype.
In each model, I have a belongs to, so I have Comments belongs to Touch, Touch belongs to Touchtype.
I'm trying to get a list of comments that includes information about the touch stored in the touchtype table.
$this->Comment->find(...)
I pass in a fields list to the find(). I can grab fields from Touch and Comment, but not TouchType. Does the model connection only go 1 level? I tried tweaking recursive, but that didn't help.
Upvotes: 0
Views: 930
Reputation: 11
yup. you might want to try increasing $this->Comment->recursive to 2
Upvotes: 1