[Dbix-class] result_class bug in -current

Christopher H. Laco claco at chrislaco.com
Mon May 21 23:46:06 GMT 2007


Guillermo Roditi wrote:
> Jess (castaway) ran into a bug today when using result_class and
> related_resultset. A failing test has been checked into -current as
> 97result_class.t  it beats the hell out of me. I tried to walk through it,
> but was unsuccessful. could someone please take a look at this? I'm too
> beat
> for it today.
> =

>  my $cd_rc =3D $schema->resultset("CD")->result_class;
>  my $artist_rs =3D $schema->resultset("Artist")
>    ->search_rs({}, {result_class =3D> "IWillExplode"});
>  is($artist_rs->result_class, 'IWillExplode', 'Correct artist
> result_class');
>  my $cd_rs =3D $artist_rs->related_resultset('cds');
>  is($cd_rs->result_class, $cd_rc, 'Correct cd result_class');  #this will
> fail

I'm away from a working perl at the moment...
what does the failure do..gripe about "did you remember to load
IWIllExplode"?

Thanls for hte test though.
error_report_plus_test++

-=3DChris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070521/8c=
edf10c/signature.pgp


More information about the Dbix-class mailing list