On Jan 22, 6:25 am, david_setwise <[EMAIL PROTECTED]> wrote:
> Doesn't CakePHP 1.2 support additional fields in a HABTM table?
>
> David
Yes, but I doubt that is going to make your life very easy if you try
to administer/user your Colors_Shirts_Sizes table based on that.
Wouldn't your Colors_Shirts_Sizes table be better named
shirt_versions, stocks, inventories or something more descriptive (and
definitely treated as a model)?
You can make use of the 'with' parameter with habtm relationships to
say Shirt habtm Colors 'with' shirt_versions; and shirt habtm sizes
'with' shirt_versions (adding appropriate conditions in both cases,
and DISTINCT somewhere appropriate) if you wanted to.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---