[Dbix-class] Prefetch not supported with accessor 'multi'

Ramprabhu Kaliaperumal ramprabhu.kaliaperumal at oracle.com
Wed Jul 25 18:51:14 GMT 2007


Hi All
I am getting this error

Caught exception in GlobalDC::C::Host->list 
"DBIx::Class::ResultSet::all(): Prefetch not supported with accessor 
'multi' at /globaldc/web/dev11/catalyst/lib/GlobalDC/C/Host.pm line 173"

Here is my code

  my @hosts = $c->model('Local::Host')->search(
    { -and => [{'problems.status' => ['error', 'warning']}, @search] },
    {join => [qw/ problems /], select => 
['me.hostname','me.ip','me.console','me.escalation_group','problems.status'], 
distinct => 1, order_by => 'hostname', cache => 1})->all;


I am able to understand the error message.. Please help!

Regards
-Ram



More information about the Dbix-class mailing list