I think this is the link your a looking for: http://bin.cakephp.org/saved/1237
On Thu, Apr 3, 2008 at 4:24 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Like it is written in one of the comments on the page you link to. > Cake does not return objects partly because it does not fit well with > the PHP-language. In ruby, everyhing is an object. Every character, > every number is its own object. So it is very natural to use objects > for the model-data to follow the language conventions. Doing the same > in PHP would be fighting the language every step of the way. > > I understand your desire to have "lazy" data retieval and access to > methods on your data. I want that to from time to time (specifically > when I have been developing in a more OO language for a while and come > back to PHP). > > As on that page I would also suggest you look at some of the bahaviors > in the Bakery that can help with binding and unbinding data not needed > for the current request. > > Another thing you can make use of for exports is paginate. Yes > really :) If you are dumping 600 000 rows at once you could probably > run out of memory. By running the export in a few passes are appending > the exported file (or wherever the data is going) each time you will > use less memory. (sure you can also "paginate" manually but what fun > would that be?) > > I often run big-memory and long-time data management from the php-cli > using cron or other trigger. > > /Martin > > > On Apr 3, 7:41 am, "R. Rajesh Jeba Anbiah" > <[EMAIL PROTECTED]> wrote: > > It's very crucial to have the find() or similar returns DB > > object instead of full array--as for any data export module, we cannot > > dump the whole array which would result in memory error. IIRC, someone > > provided how to do that in CakePHP, but I lost the link; but, when I > > google, the closest I get now ishttp:// > jimmyzimmerman.com/blog/2007/05/why-i-prefer-ruby-on-rails-ove... > > Is there anyone who bookmarked such previous hack or can provide any > > hint? TIA > > > > -- > > <?php echo 'Just another PHP saint'; ?> > > Email: rrjanbiah-at-Y!com Blog:http://rajeshanbiah.blogspot.com/ > > > -- Matias Lespiau http://www.gignus.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
