[Dbix-class] BUG? Unable to resolve relationship

Ovid publiustemp-dbic at yahoo.com
Tue Dec 15 10:41:33 GMT 2009


--- On Sat, 12/12/09, Peter Rabbitson <rabbit+dbic at rabbit.us> wrote:

> From: Peter Rabbitson <rabbit+dbic at rabbit.us>

> >     my $cust =
> $schema->resultset('Customer')->create( { name =>
> 'john' } );
> >     print
> $cust->account->type;
> > 
> > In DBIx::Class::VERSION 0.08010 (our current version
> at work), if you run this code and print
> $cust->account->type, and it prints "Premium", even
> though we have deliberately excluded an account.
> 
> This was a bug.

I'm sorry to say that this is still a bug in version 0.08115.  I've just reported it along with a sample program to reproduce:

  https://rt.cpan.org/Ticket/Display.html?id=52777

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6





More information about the DBIx-Class mailing list