On 11/14/06, TWIOF <[EMAIL PROTECTED]> wrote: > > HI Everyone, > > I've been making an images system for my site. There are various types > of image (e.g. thumb nails and illustrations). As far as the models go > an article might use hasOne for the thumb nails and hasMany for > illustrations. > > BUT, i'm using one db table for all images (there won't be that many > over all) - so can i have a hasOne and add a condition to only pick > thumbs, and a hasMany with a condition only to pick illustrations. I > know I should probably separate them into different tables, but would > it be that bad? >
The road to maintainability hell is paved with good intentions... :) -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
