oh, so AbookGroup is just the name of your model instead of Group like
above?
On Jan 16, 10:44 am, RLR <[EMAIL PROTECTED]> wrote:
> Thanks Dave,
>
> I just missed your post by a few minutes.
>
> On Jan 16, 5:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I would do:
> > $results =
Thanks Dave,
I just missed your post by a few minutes.
On Jan 16, 5:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I would do:
> $results = $this->Person->Group->findById($thegroupidyouwant);
>
> This will return the group with a given id and all it's children the
> people associated w
I haven't seen this method yet, can you explain a little? what would
you replace "AbookGroup" with, is it the group's id?
On Jan 16, 9:48 am, RLR <[EMAIL PROTECTED]> wrote:
> Ok I found the information in the list. I can just call
>
> $this->Person->AbookGroup->findAll() and it returns the people
Ok I found the information in the list. I can just call
$this->Person->AbookGroup->findAll() and it returns the people
associated with the group...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To
I would do:
$results = $this->Person->Group->findById($thegroupidyouwant);
This will return the group with a given id and all it's children the
people associated with the group should be in $results['Person']
Dave
On Jan 16, 6:19 am, RLR <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am working on an ad
Hi
I am working on an addressbook app with two basic models:
people and groups
They are related via a HABTM relationship and a join table
Tables:
people
`id`
`firstname`
`lastname`
etc.
groups
`id`
`name`
groups_people
`id`
`person_id`
`group_id`
I would like to be able to re