Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
parent preload
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
aniolekx  
View profile  
 More options Nov 9 2012, 2:51 pm
From: aniolekx <aniol...@gmail.com>
Date: Fri, 9 Nov 2012 11:51:09 -0800 (PST)
Local: Fri, Nov 9 2012 2:51 pm
Subject: parent preload
is there a way to preload all parents? (to the top parent)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gabor  
View profile  
 More options Nov 10 2012, 7:02 am
From: gabor <gabordemo...@gmail.com>
Date: Sat, 10 Nov 2012 04:02:46 -0800 (PST)
Local: Sat, Nov 10 2012 7:02 am
Subject: Re: parent preload

At the moment, no.
But I'm working on it.

If you need a simple list with columns from various tables I recommend to
either use a view and then load beans from there, or to query manually.

Cheers,
Gabor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gabor  
View profile  
 More options Nov 12 2012, 2:39 pm
From: gabor <gabordemo...@gmail.com>
Date: Mon, 12 Nov 2012 11:39:05 -0800 (PST)
Local: Mon, Nov 12 2012 2:39 pm
Subject: Re: parent preload

By the way,
I overlooked a simple solution that works to some extend:
You can of course manually multiple preload parent beans:

(case: book->page->text)
$texts = R::find('text');
R::preload($texts,array('page'));
$beans = array();
foreach($texts as $t) $beans[] = $t->page;
R::preload($beans,array('book'));

cheers,
Gabor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »