Re: Connecting Two HABTM Tables

2008-01-22 Thread AD7six
On Jan 22, 6:37 pm, david_setwise <[EMAIL PROTECTED]> wrote: > I see you point about making the database structure more simple, and I > like it, but does that make the programming logic a lot more > complicated? If I add a Style with 20 colors and 4 sizes, do I have > to manually loop through a

Re: Connecting Two HABTM Tables

2008-01-22 Thread david_setwise
> > - inventory_qty > > > ... any other inventory information needed such as location etc. > > > > As soon as you need more than just the cross reference id's in the table > > > (like your inventory quantity) it needs to be its own model. > > > >

Re: Connecting Two HABTM Tables

2008-01-22 Thread MrTufty
l Message- > > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > > Of david_setwise > > Sent: January 21, 2008 3:03 PM > > To: Cake PHP > > Subject: Connecting Two HABTM Tables > > > Here is a potential situation in which it seem

Re: Connecting Two HABTM Tables

2008-01-22 Thread AD7six
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_S

Re: Connecting Two HABTM Tables

2008-01-22 Thread david_setwise
- > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of david_setwise > Sent: January 21, 2008 3:03 PM > To: Cake PHP > Subject: Connecting Two HABTM Tables > > Here is a potential situation in which it seems like two HABTM tables > should be conn

Re: Connecting Two HABTM Tables

2008-01-22 Thread david_setwise
- > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > > Of david_setwise > Sent: January 21, 2008 3:03 PM > To: Cake PHP > Subject: Connecting Two HABTM Tables > > Here is a potential situation in which it seems like two HABTM tables > should be conn

RE: Connecting Two HABTM Tables

2008-01-21 Thread Ponderosa - Lists
ntory quantity) it needs to be its own model. Danielle -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of david_setwise Sent: January 21, 2008 3:03 PM To: Cake PHP Subject: Connecting Two HABTM Tables Here is a potential situation in which it seems

Connecting Two HABTM Tables

2008-01-21 Thread david_setwise
Here is a potential situation in which it seems like two HABTM tables should be connected. So, am I incorrect in my table structure. If not, can Cake handle connecting two HABTM tables? The system in question deals with clothing. So imagine shirts of various types that can have multiple sizes