Re: Problem with has_many and searching

[prev] [thread] [next] [Date index for 2004/10/05]

From: John Day
Subject: Re: Problem with has_many and searching
Date: 17:38 on 05 Oct 2004
At 12:25 PM 10/5/2004, Perrin Harkins wrote:
>On Tue, 2004-10-05 at 18:20, John Day wrote:
> > and now I get:
> >
> > 2004/10/05
> > $VAR1 = bless( {
> >    '_data' => [
> >      {
> >        'id' => '6'
> >      },
> >      {
> >        'id' => '7'
> >      }
> >    ],
> >    '_place' => 0,
> >    '_mapper' => [],
> >    '_class' => 'InContact::cDBI::contactdetail'
> > }, 'Class::DBI::Iterator' );
> >
> > So now I know which are the contactdetail records involved, but what I
> > really need is an iterator that will iterate over the contact records.
>
>Uh, that is an iterator.  Have you read the ITERATORS section of the
>docs?

Yes, and I don't see anything relevant. I need an iterator.

My problem is I need to figure out how to get an iterator that points to 
the 'contact' records, not the contactdetail records.

Thanks for taking the time!
..john



>- Perrin


Re: Problem with has_many and searching
John Day 16:20 on 05 Oct 2004

Re: Problem with has_many and searching
Perrin Harkins 16:25 on 05 Oct 2004

Re: Problem with has_many and searching
John Day 17:38 on 05 Oct 2004

Re: Problem with has_many and searching
Perrin Harkins 17:47 on 05 Oct 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52