unless ($for->has_column_loaded($v)) {
if ($for->in_storage) {
$self->throw_exception(
- "Column ${v} not loaded or not passed to new() prior to insert()"
- ." on ${for} trying to resolve relationship (maybe you forgot "
- ."to call ->discard_changes to get defaults from the db)"
+ "Unable to resolve relationship to ${for}: column ${v} 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."
);
}
return $UNRESOLVABLE_CONDITION;