Primary key declaration looks ok there, but I'm not so sure about the line { 
header_id => "header_id" }
in the belongs_to.

I think I'd expect something like { 'foreign.header_id' => 'self.header_id' }

I wonder if missing out the 'foreign' bit from this is causing a problem?

DS


On 21 Jun 2012, at 22:11, Tim Anderson wrote:

> My Header.pm:
> 
> use utf8;
> package TJATest::Schema::Result::Header;
..snip...

_______________________________________________
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/dbix-class@lists.scsys.co.uk

Reply via email to