[Dbix-class] Announcing 0.08099_06 - add_relationship and accessors on objects

Zbigniew Lukasiak zzbbyy at gmail.com
Wed Jan 28 10:23:56 GMT 2009


On Mon, Jan 26, 2009 at 9:22 AM, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> Hi,
>
> I've started the testing and I found out that add_relationship does
> not create the accessor on  the row objects (or maybe I am missing
> something - but then I volunteer to do the doc patch).  I think this
> is not new.
>
> A test diff is attached - here is what it contains:
>
> In CD.pm:
>
> __PACKAGE__->add_relationship('genre_new_rel', 'DBICTest::Schema::Genre',
>    { 'foreign.genreid' => 'self.genreid' },
>    { 'accessor' => 'single' }
> );
>
> I have the impression that this should create the accessor on the row object.
>
> But this test fails:
>
> ok( $cd->can( 'genre_new_rel' ), 'Genre accessor created' );
>
>

I can dig it deeper and try to write a patch - but I need a
confirmation that this is a bug indeed.

Cheers,
Zbigniew,



More information about the DBIx-Class mailing list