Re: cross tables in cake 1.3

2014-07-01 Thread Борислав Събев Borislav Sabev
I. There should not be a case where you have to load so many models in a single controller. As all objects in OOP, it is good that controllers be delegated *only one specific task*, not 2, not 3 and not 25... Are you sure that there is no way that you can extract so functionality and move it t

Re: cross tables in cake 1.3

2014-06-30 Thread Stephen S
Looking at this you have the User model and for example UserStatusPost model, I would assume that the user_status_posts table has a field 'user_id'. If that's the case, why would you not use that model by calling $this->User->UserStatusPost? I guess the same would apply to most of the other models

Re: cross tables in cake 1.3

2014-06-30 Thread Jeremy Burns : Class Outfit
That is A LOT of models to load and there is almost certainly a better way of cracking your nut. What are you trying to achieve? On 30 Jun 2014, at 08:33, 'Chris' via CakePHP wrote: > hi guys,.. I'm using to many cross tables in a controller,... and getting > memory error not enough bites,...

cross tables in cake 1.3

2014-06-30 Thread 'Chris' via CakePHP
hi guys,.. I'm using to many cross tables in a controller,... and getting memory error not enough bites,... var $uses = array('User', 'Friend', 'FriendRequest', 'UserInvisiblePoint', 'UserStatusPost', 'StatusLike', 'StatusNotification', 'ZodiacType', 'Point', 'ProfileComment', 'Gift', 'Guest