Switch reverse_relationship_info() to the relcond resolver
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 11 Aug 2016 09:06:59 +0000 (11:06 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Tue, 27 Sep 2016 08:21:29 +0000 (10:21 +0200)
commit86be9bcb90213db633791fcce074b7268765f615
treeab69ed7610f2eca9fe5b1f15f0f357f6c19e36eb
parenta3ae79ed1009ae4679909f4ec7dc0327c1adaae8
Switch reverse_relationship_info() to the relcond resolver

Prompted by a PR from @mzealey, a code audit showed the entire implementation
to be severely lacking. Switched to proper relationship resolution, with the
added benefit of support for custom conds whenever possible.

As of this commit every single relationship introspection now goes through a
central point: _resolve_relationship_condition(). No more random ... eq 'HASH'
checks all over the place.

There should be zero functional changes as a result (aside from better custom
cond introspection)
.mailmap
AUTHORS
lib/DBIx/Class/ResultSource.pm
lib/DBIx/Class/ResultSource/RowParser.pm
lib/DBIx/Class/_Util.pm
lib/SQL/Translator/Parser/DBIx/Class.pm