you also have to set $recursive = 1 in the model.
On Jun 21, 9:21 pm, David <[email protected]> wrote:
> I've tried using both hasOne and belongsTo and neither works. I was
> initially using belongsTo but that didn't work so I switched to
> hasOne. I just tried it again to be sure, and it still isn't
> working. Do I need to set up foreign keys within mysql?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---