register sources on schema class, never instance
authorRafael Kitover <rkitover@cpan.org>
Wed, 4 Apr 2012 23:25:11 +0000 (19:25 -0400)
committerRafael Kitover <rkitover@cpan.org>
Wed, 4 Apr 2012 23:43:17 +0000 (19:43 -0400)
commit23fd9773396107df3eb26c44274cb8c39aa0339b
tree061100d8ece4601dc5c2192b98c4e36d7100bd20
parentdec809869e443d2b09cb4d86835dadc489d1d116
register sources on schema class, never instance

Change _invoke_loader in Loader.pm to always invoke the loader on the
Schema class, never the instance, even if an instance is passed in, and
then merge the state of the class into the instance if necessary.

Fix up a couple of tests to work with this new logic.

Also change make_schema_at to use ->connect instead of ->connection
because of people relying on instance state in ->connection (RT#74175),
being careful to copy the storage back to the Schema class.
Changes
Makefile.PL
lib/DBIx/Class/Schema/Loader.pm
t/24loader_subclass.t
t/backcompat/0.04006/23dumpmore.t
t/lib/dbixcsl_dumper_tests.pm