What's the syntax for adding an "extra field" to the $hasAndBelongsToMany var?
Thank you for you response. On Mar 11, 2:43 am, Xoubaman <xouba...@gmail.com> wrote: > You can model it like a normal HABTM relationship with an extra field > named main_photo. > > On Mar 11, 8:30 am, mattalexx <mattal...@gmail.com> wrote: > > > My articles have and belong to many photos. This is so when the photo > > is seen somewhere else on the site, I can have a "see related > > articles". Each article also has one main photo. I can't seem to > > figure out the syntax for this in APP/models/article.php file and in > > APP/models/photo.php. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---