This seems to work… but is this the correct way of doing an ORDER BY on a child when using preload? Don’t want to write something that might break with a new version of rb!
R::preload($someBean,array('ownChildbean'=>array('childbean',array('ORDER BY id DESC',array()))));
Thanks
Thanks Gabor. Surprised the preloader is no longer part of the core – is there a better technique for loading child beans in one query other than manual joins? I find I use it quite a lot if I’m going to be iterating over parents.
--
You received this message because you are subscribed to the Google Groups "redbeanphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
redbeanorm+...@googlegroups.com.
To post to this group, send email to
redbe...@googlegroups.com.
Visit this group at http://groups.google.com/group/redbeanorm.
For more options, visit https://groups.google.com/d/optout.