In exactly the same way :-) You join table (products_sizes) would hold the stock field
id (PK) product_id (FK) size_id (FK) stock (INT) On Sep 17, 9:27 pm, VitillO <[EMAIL PROTECTED]> wrote: > Hi, i have the following structure for a tshirt online store: > > Product HABTM Size > Size HABTM Product > > Association table: > products_sizes > > The problem is, i need a stocks system. > > For example, say i have 50 pieces of S (size) for a particular tshirt, > before using cake i had a column 'stock' in the association table, so > i could retrieve the particular stock of that size, for that product, > but now with cake i dont know how i should make the association. > > Any help? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
