<?xml version="1.0" encoding="windows-1252"?>
<node id="774764" title="DBIx::Class No such relationship" created="2009-06-25 12:26:21" updated="2009-06-25 12:26:21">
<type id="115">
perlquestion</type>
<author id="587543">
Sixtease</author>
<data>
<field name="doctext">
&lt;p&gt;Hello everybody,&lt;/p&gt;

&lt;p&gt;I've upgraded DBIx::Class (from 0.07.something -- it came with the Ubuntu Catalyst package methinks) and now my application says &lt;b&gt;No such relationship&lt;/b&gt; every time I try to access a column via a method of its name.&lt;/p&gt;

&lt;p&gt;E.g. I have rounds and each round belongs to a contest&lt;/p&gt;

&lt;code&gt;my $round = $c-&gt;model-&gt;resultset('Rounds')-&gt;find(5);
$round-&gt;get_column('contest'); # works OK
$round-&gt;contest; # no longer works after update&lt;/code&gt;

&lt;p&gt;Do you know if this functionality can be restored? I kinda have this all around my codebase.&lt;/p&gt;

&lt;p&gt;Thanks for advice!&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-587543"&gt;
&lt;small&gt;use strict; use warnings; print "Just Another Perl Hacker\n";&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
</data>
</node>
