Re: Upgrade to Cake 1.2.1 stable problems

2009-02-01 Thread Mathew
Yes, its dynamic. It seems that in the 1.2 stable that HABTM for a model will always create a default model for the join table unless the join table is listed first in the uses for the controller. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Upgrade to Cake 1.2.1 stable problems

2009-01-31 Thread Miles J
Why is there a dollar sign before the model? Are you calling a model dynamically? $this->$documentsTagsModel? On Jan 31, 12:40 pm, Mathew wrote: > Looks like they have changed HABTM so that it calls "new AppModel" for > the join table. Even if a model exists that is of the same name as the > joi

Re: Upgrade to Cake 1.2.1 stable problems

2009-01-31 Thread Mathew
Looks like they have changed HABTM so that it calls "new AppModel" for the join table. Even if a model exists that is of the same name as the join table. So if I list the HABTM table and the join table in my uses for the controller, then it will not load the associations for the join model. Is th

Upgrade to Cake 1.2.1 stable problems

2009-01-31 Thread Mathew
Hi, I was running Cake 1.2.0.7692 RC3 with a model that has a $belongsTo from the PortfolioTag table to the Portfolio table. I could run this Find statement. $count = $this->$documentsTagsModel->find('count',array ('conditions'=>array('tag_id'=>$tagRecord ['id'],'published'=>1,'front_page'=>1),'