[Dbix-class] search() returning REFs

Matthias Zeichmann matthias.zeichmann at gmail.com
Mon Feb 18 15:30:58 GMT 2008


On Feb 18, 2008 4:12 PM, Paul Makepeace <paulm at paulm.com> wrote:
> It seems that a search() is returning an array of \bless'ed instead of
> bless'ed objects.
>
> I'm putting in a die to dump out am example:
>
> Caught exception in IDL::Web::Controller::SP::Companies->edit "SPC:
> REF(0xa9328f4) = REF at
> /home/paulm/idl/trunk/IDL-Web/script/../lib/IDL/Web/Controller/SP/Companies.pm
> line 86."
>
>    82:  my @service_profile_companies :Stashed = \
>    83:          $ds_ro->resultset('ServiceProfileCompany')->search({service_profile_uid
>    84: => $service_profile_uid});
>    85:  foreach my $spc (@service_profile_companies) {
>    86:          die "SPC: $spc = ", ref($spc);
>    87:  }

get rid of the backslash in line 82; this is not bash :P
-- 
siggen.pl: Segmentation Fault



More information about the DBIx-Class mailing list