Add a clone method to ResultSource, switch obvious spots to it
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 7 Apr 2016 11:20:30 +0000 (13:20 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Mon, 25 Jul 2016 12:38:38 +0000 (14:38 +0200)
commit534aff612dee17fe18831e445d464d942c27c172
tree2c9f0edd4d44c626c90e1160a40e284b96e6dae5
parent7648acb5dd1f2f281ca84e2152efe314bcbf2c70
Add a clone method to ResultSource, switch obvious spots to it

Not messing with the ::ResultSourceProxy::Table clusterfuck for now, too many
things can go wrong. Instead will explicitly instrument the callsites in
subsequent commits.

Also add assertions this does not get routed around: such use will throw from
here on out as long as one enables the necessary assert:

~$ DBIC_ASSERT_NO_ERRONEOUS_METAINSTANCE_USE=1 perl -Ilib -MDBIx::Class -e '
  bless ({}, "DBIx::Class::ResultSource")
'
lib/DBIx/Class/DB.pm
lib/DBIx/Class/ResultSource.pm
lib/DBIx/Class/Schema.pm
lib/DBIx/Class/_Util.pm
t/zzzzzzz_perl_perf_bug.t