in reply to Class::DBI not giving me what I need!
my $details = InContact::cDBI::contact->contact_detail(recontact = > $tm);
This doesn't work because the contact_detail method created by has_many is an instance method - if you already had an object $obj of class InContact::cDBI::contact returned by retrieve or search then you could say
You can do something likemy @details = $obj->contact_detail(recontact = > $tm);
and then filter out the duplicates. But I think you will need to use set_sql to do the kind of search you have in mind (can't give an example because I don't know what your fields are).my @contacts = map { $_->contact_id } InContact::cDBI::contactdetail-> +search(recontact = > $tm);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class::DBI not giving me what I need!
by perrin (Chancellor) on Oct 05, 2004 at 22:28 UTC |