Is this correct?

30 views
Skip to first unread message

Paul Gardner

unread,
Jun 8, 2014, 11:33:28 AM6/8/14
to redbe...@googlegroups.com

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

Email communications are not secure; for this reason medDigital cannot guarantee the security of the email or its contents or that it remains virus free once sent.

This email message is strictly confidential and intended solely for the person or organisation to who it is addressed. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, distribute or take any action in reference to it. If you have received this email in error, please notify us as soon as possible and delete the message from your system.

Unless stated to the contrary, any opinions expressed in this message are personal and may not be attributed to medDigital.

medDigital Limited is a company registered in England and Wales. Registered number: 6453053. Registered Office: 53a High Street, Esher, Surrey, United Kingdom, KT10 9RQ.

gabor

unread,
Jun 8, 2014, 12:25:29 PM6/8/14
to redbe...@googlegroups.com

This is ok.
The preloader is no longer included in RedBeanPHP so it is kind of deprecated but it will be available as a plugin.
I think there is seldom a real need for the preloader.
This also means the preloader won't change anymore so no compatibility issues there ;)

cheers
Gabor

Paul Gardner

unread,
Jun 9, 2014, 7:07:03 AM6/9/14
to redbe...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages