[Dbix-class] create_related is failing on second time through loop?

David Stevenson hoagy at ytfc.com
Thu Jun 21 21:22:01 GMT 2012


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

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

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...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120621/f68=
047bb/attachment.htm


More information about the DBIx-Class mailing list