On Fri, Dec 11, 2009 at 10:34, Ovid <[email protected]> wrote:
> In the sample code I sent, changing "might_have" to "belongs_to" results in 
> the same error:
>
> The::Schema::Customer::account(): Unable to resolve relationship from 
> Customer to account: column account.account_id not loaded from storage (or 
> not passed to new() prior to insert()). Maybe you forgot to call 
> ->discard_changes to get defaults from the db. at loader.pl line 37

Did you add the join_type => LEFT as I suggested?

Rob

_______________________________________________
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