Hello,

This is pretty basic I think.

I have a one to one relationship between an 'Item' and an 'Image.' The
images will be stored as BLOBs. I'm wondering if I should try to get
away
with making the Image attributes part of the Item Model. i.e..
image_size,
image_type, image_name, image_data, are just additional Items columns.

If I do create an Image Model (the way I started out,) how can I have
my
'items/add-edit' actions submit data to two tables?

I was curious to see what baking a view for 'Items' would do with the
'hasOne' relationship. It didn't see to acknowledge the 'Images' table.

A common add/edit form makes sense in this case does it not?

Thanks for any suggestions,

Dan J.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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