On Mon, Jan 26, 2009 at 9:22 AM, Zbigniew Lukasiak <[email protected]> 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, _______________________________________________ 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/[email protected]
