On 1 March 2011 13:33, Peter Shangov <pshan...@yahoo.com> wrote: > Follow-up to my previous message: > > The problem is in line 426 in DBIC.pm (current version on github): > > $dbic->discard_changes unless( $dbic->$rel ); > > DBIx::Class throws an exception on $dbic->$rel if the foreign key column for > $rel is undefined, except where the foreign key column has the same name as > $rel, in which case undef is returned (since DBIx::Class actually executes > $dbic->$column). An easy solution is simply to use eval: > > $dbic->discard_changes unless( eval { $dbic->$rel } );
I've tried digging deeper to figure out what's going on - but have become lost in DBIC's innards :( Have pushed your suggested fix to github -thanks Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu