do not use "me" on the related_resultset pessimization
authorDaniel Ruoso <daniel@ruoso.com>
Tue, 30 Nov 2010 13:24:35 +0000 (10:24 -0300)
committerPeter Rabbitson <ribasushi@cpan.org>
Thu, 20 Jan 2011 11:41:16 +0000 (12:41 +0100)
commitf3cfaac640901858c6d9983758e5485ae9baf30f
tree8750f71ec0796aa596c8342039df5e5799be8e38
parent8d656b21a2745da7ce24bf7fca2e3b28fe37ec58
do not use "me" on the related_resultset pessimization

This was requested by ribasushi, but it is still incomplete.
Added a TODO test with the expected final query.

Problem is: the alias is defined in $source->_resolve_join,
which is completely disconnected from the search context
so it cannot receive a different alias
lib/DBIx/Class/Relationship/Base.pm
t/relationship/custom.t