>>>>> "Dermot" == Dermot  <[email protected]> writes:

    Dermot> __PACKAGE__->belongs_to( "contributor_id", 
"MyAPP::Schema::Contributors",
    Dermot>     { contributor_id => "contributor_id" },
    Dermot> );

Also note you might want to change this to

__PACKAGE__->belongs_to( "contributor", "MyAPP::Schema::Contributors",
    { contributor_id => "contributor_id" },
);

To avoid confusion between the contributor relationship and the
contributor_id column.

-- 
   Eden Cardim       Need help with your Catalyst or DBIx::Class project?
  Code Monkey                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://edenc.vox.com/            http://www.shadowcat.co.uk/servers/


_______________________________________________
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]

Reply via email to