Re: change model $useTable on the fly

2007-10-03 Thread cakeFreak
Cheers guys! I'll post my findings here lata (if somebody else is interested to the same topic)! Dan On 3 Ott, 15:57, gwoo <[EMAIL PROTECTED]> wrote: > do a search in this group for setSource --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: change model $useTable on the fly

2007-10-03 Thread gwoo
do a search in this group for setSource --~--~-~--~~~---~--~~ 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

Re: change model $useTable on the fly

2007-10-03 Thread cmbg
If you're talking about how to change the relationships to a model, you would use bindModel and unbindModel. I don't think you can change a models table when you could use multiple models in a controller via the uses array. ;b On Oct 3, 8:39 am, cakeFreak <[EMAIL PROTECTED]> wrote: > Anyone kno

change model $useTable on the fly

2007-10-03 Thread cakeFreak
Anyone knows how it is possible to change the table used by a model on the fly? Should I use a beforeFind condition in my model? Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi