Re: Interesting complex associations problem

2006-04-07 Thread josh southern
Nate, this appeared to work until I got to the show() action, which lists all the Menus. There are over 300 menus in the table, and when Cake tries to find all the product data for each of the 34 product fields for each of the 300 menus, it chokes. It can't complete the request. I get a server err

Re: Interesting complex associations problem

2006-04-07 Thread josh southern
Thanks, Nate. You've been my saving grace on this project! I ended up having to put almost all 34 in separate manual find() actions, because of recursion I needed on other associations in the Menu class, but it eventually worked! --~--~-~--~~~---~--~~ You receive

Re: Interesting complex associations problem

2006-04-06 Thread nate
Wow, that's a tough one. The only thing I can think of is removing three or four associations from $belongsTo, and doing them manually Menu::afterFind( ), which would look something like this (keep in mind, this code is off-the-cuff and completely untested): class Menu extends AppModel { /// ..

Interesting complex associations problem

2006-04-06 Thread josh southern
I have an app that is basically a menu of products. A user selects products in 34 drop-downs, and then it spits out a custom menu in PDF format. I have the associations set up as follows: ///Model 'Enhancement' (excerpt) var $hasMany = array( 'ProductOne' => ar