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);
In reply to Re: Class::DBI not giving me what I need!
by Arunbear
in thread Class::DBI not giving me what I need!
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |