OK, I'm new so bear with me. I've got a Product model and an Image model. As they are set up right now, Product hasOne Image and Image belongsTo Product.
On my Product add /edit views, I have a select dropdown that shows all the available images in the Image model. By selecting one of these, the image_id field on the Product model is populated with the id of the selected image. Once this is set, is there a way to access data in other fields of the Image model? For instance, when I pull up a Product and it has a image_id of 5, how do I get the information from the path field for the Image record with the id of 5? I'm reluctant to add a product_id to the image table because while a Product will only have one image, several products could use the same image. Hope this makes some sense. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
