Avoid ResultSourceProxy calls whenever possible
authorPeter Rabbitson <ribasushi@cpan.org>
Mon, 21 Jul 2014 10:41:46 +0000 (12:41 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Tue, 22 Jul 2014 01:48:20 +0000 (03:48 +0200)
commit4006691d207a6c257012c4b9a07d674b211349b0
treeee7ee2ed2f5404fb785faecc52d0dec0c14f621c
parent12b348d9331e09e2a7ab55bf57fbc33476cf174c
Avoid ResultSourceProxy calls whenever possible

Along with efficiency gains this commit makes a very subtle but crucially
important change: From here now on when we operate on an instance, we are
guaranteed to query this instance's result source. The previous codepaths
would nearly randomly switch between the current rsrc instance and the one
registered with the corresponding result class.

This will allow for proper synthetic result instance construction further on
Changes
lib/DBIx/Class/FilterColumn.pm
lib/DBIx/Class/InflateColumn.pm
lib/DBIx/Class/InflateColumn/File.pm
lib/DBIx/Class/Relationship/Base.pm
lib/DBIx/Class/ResultSourceProxy.pm
lib/DBIx/Class/Row.pm