| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Can cake support three-way joins? |
| |
|
|
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| like? |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Ok, here it goes ... |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| If it can be done in SQL then cake can do it |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
Cool
So we have basically 3 models, and 1 joining table that has the three primary keys of each model |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| BigDaddy, you may have to write your own SQL for it |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| I knew cake does 2 models joining pretty well, but I didnt know if it supported any higher ... |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
It will do some intense joins
Look at the models I have for bakery
Bakery |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Yeah, i found bakery. Thanks. :) |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
| |
|