Stop accepting foreign_values => undef/rowobj in the resolver
authorPeter Rabbitson <ribasushi@cpan.org>
Wed, 10 Aug 2016 14:16:33 +0000 (16:16 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Mon, 26 Sep 2016 15:15:42 +0000 (17:15 +0200)
commit786c1cddede6675b9fc5fc46ae4e1e136ef2c392
tree8b4e25ab841cf9f8388cb01faac5293e881eab6e
parent3aac91f35f319b3bf6bad743d956f037ba857012
Stop accepting foreign_values => undef/rowobj in the resolver

There are just a few spots that need this, things are complex enough as it is

Introduces a subtle change in behavior - now results of $foreign->get_columns
are scrutinized just as a plain hashref, and as a result the sanity checks are
somewhat relaxed.

There should not be any fallout due to this - tested on a wide range of
downstreams

Adjust some tested-for exceptions added in 7e5a0e7c as a result of the above

Read under -w
lib/DBIx/Class/Relationship/Base.pm
lib/DBIx/Class/ResultSet.pm
lib/DBIx/Class/ResultSource.pm
t/cdbi/06-hasa.t
t/cdbi/18-has_a.t
t/relationship/resolve_relationship_condition.t