Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

DBIx::Class No such relationship

by Sixtease (Friar)
on Jun 25, 2009 at 16:26 UTC ( #774764=perlquestion: print w/ replies, xml ) Need Help??
Sixtease has asked for the wisdom of the Perl Monks concerning the following question:

Hello everybody,

I've upgraded DBIx::Class (from 0.07.something -- it came with the Ubuntu Catalyst package methinks) and now my application says No such relationship every time I try to access a column via a method of its name.

E.g. I have rounds and each round belongs to a contest

my $round = $c->model->resultset('Rounds')->find(5); $round->get_column('contest'); # works OK $round->contest; # no longer works after update

Do you know if this functionality can be restored? I kinda have this all around my codebase.

Thanks for advice!

use strict; use warnings; print "Just Another Perl Hacker\n";

Comment on DBIx::Class No such relationship
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://774764]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (17)
As of 2015-07-28 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls