Monday, June 30, 2014

Re: cross tables in cake 1.3

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 <cake-php@googlegroups.com> wrote:

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', 'Resume', 'UserBan', 'Invitation', 'Report', 'Photo', 'PhotoFavorite', 'PhotoLike', 'PhotoRating', 'PhotoComment', 'Blog', 'BlogComment', 'BlogFavorite', 'BlogLike', 'Group', 'GroupFavorite', 'GroupDiscussion', 'GroupMember', 'GroupPhoto', 'GroupLike', 'GroupComment', 'Dba', 'DbaFavorite', 'DbaLike', 'Video', 'VideoFavorite', 'VideoLike', 'VideoComment', 'Classified', 'Event', 'Notification', 'ProfileNotification', 'Bookmark', 'Message', 'Alert', 'Signin', 'Signin');

how can I avoid this doing from "user.php" model,...? 

thanks in advance,... 


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: