Google Groups Home
Help | Sign in
How to query a parent/child relation
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
  4 messages - Collapse all
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
GlobalSound  
View profile
 More options Dec 29 2006, 3:04 am
From: "GlobalSound" <mig...@globalsound.ca>
Date: Fri, 29 Dec 2006 00:04:19 -0800
Local: Fri, Dec 29 2006 3:04 am
Subject: How to query a parent/child relation
How i can query with the GetParentList the parent field and the chield
one ?

    Reply to author    Forward  
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.
Joel  
View profile
 More options Dec 29 2006, 3:14 am
From: "Joel" <joel...@gmail.com>
Date: Fri, 29 Dec 2006 08:14:13 -0000
Local: Fri, Dec 29 2006 3:14 am
Subject: Re: How to query a parent/child relation
A parent has many children whereas a child can have only 1 parent.
Therefore, the parent can query the list of children by calling
Get{Children}List generated method.

The child, since it has only one parent, can call Get{Parent} generated
method to get the parent object.

Hope this helps

Joel


    Reply to author    Forward  
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.
GlobalSound  
View profile
 More options Jan 11 2007, 2:27 am
From: "GlobalSound" <mig...@globalsound.ca>
Date: Wed, 10 Jan 2007 23:27:41 -0800
Local: Thurs, Jan 11 2007 2:27 am
Subject: Re: How to query a parent/child relation
Yes, but supposing I have a Object User (field since) with child and a
Object Login (datetime) i need to know all users in the system register
since last 10 days and how many times they logs in ...

    Reply to author    Forward  
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.
Joel Wan  
View profile
 More options Jan 11 2007, 2:36 am
From: "Joel Wan" <joel...@gmail.com>
Date: Thu, 11 Jan 2007 00:36:50 -0700
Local: Thurs, Jan 11 2007 2:36 am
Subject: Re: [Php-Object-Generator:887] Re: How to query a parent/child relation

I think you can do it in 2 steps:

$userList = $user->GetList(since = 10 days);

once you have have the userlist, you also have the login times

foreach ($userList as $user)
{
   $user->GetLoginList();

}

hope this helps
Joel

On 1/11/07, GlobalSound <mig...@globalsound.ca> wrote:


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google