Hey all -

I'm working through a few articles and tutorials in an effort to
migrate at least one of my existing apps into Cake and I got to
wondering about how to handle a scenario that I'm going to run into.

I have several apps that deal with both documents (word docs, pdfs,
etc.) and images.  Because they share many properties, I have a binary
table containing fields for file size, path, URI, name, etc. and an
image table containing image specific properties like height, width
and file_id (the foreign key back to its other properties in the
binary table).

The examples and tutorials I've found so far, in an effort to keep it
simple (hopefully), have focused on one model, one table.  For
example, the Posts model retrieves data from the posts table.  In
fact, most barely mention the model since Cake appears to handle the
simple scenario with remarkably little code in the model.

In my Image model, data would have to be retrieved from multiple
tables.  What's the "Cake way" of going about this?

Thanks.

Rob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to