[Dbix-class] search() returning REFs
Paul Makepeace
paulm at paulm.com
Mon Feb 18 15:45:46 GMT 2008
On 2/18/08, Matthias Zeichmann <matthias.zeichmann at gmail.com> wrote:
> 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
Haha, thanks. Too much python!
P
> --
> siggen.pl: Segmentation Fault
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.rawmode.org
>
More information about the DBIx-Class
mailing list