Chris, thanks for the reply and for backing up my database approach ;)

Unfortunately that didn't fix the problem. The issue seems to be that,
although my Album model can recursively retrieve data from the Image
model, it can't access the Image model in my field list for the find()
argument. Doing array('Album.name') for the argument works fine, it
returns just the name of the album, and a blank array for the Image
model. However, array('Album.name', 'Image.caption') gives me the
error:

SQL Error in model Album: 1109: Unknown table 'Image' in field list

I think it's time to just start writing controller actions and some
custom SQL to get the information I need.

Thank you both for the help!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to