On Mar 26, 7:12 pm, programguru <[email protected]> wrote:
> My final outcome will be like so:
>
> 1) Each image is in a specific category.
>
> 2) There will be no more than one-level of category (meaning there will be no 
> subcategories).
>
> 3) Images will not be in more than one category (so each image will only be 
> assigned to one category).

For this situation, you would just need: GalleryCategory hasMany
GalleryImage, and GalleryImage belongsTo GalleryCategory. No HABTM
needed in this case, so your schema looks fine to me.
--~--~---------~--~----~------------~-------~--~----~
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