[Dbix-class] BUG? Unable to resolve relationship
rob.kinyon at gmail.com
Fri Dec 11 15:35:53 GMT 2009
On Fri, Dec 11, 2009 at 10:34, Ovid <publiustemp-dbic at yahoo.com> 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?
More information about the DBIx-Class