move schema state copy to _copy_state_from
authorRafael Kitover <rkitover@cpan.org>
Wed, 4 Apr 2012 02:36:08 +0000 (22:36 -0400)
committerRafael Kitover <rkitover@cpan.org>
Wed, 4 Apr 2012 11:21:35 +0000 (07:21 -0400)
commit93963f599878e7c2808c58083d214da5270a2691
treefbd5d3af004011f1d8f4991c6bbe02a42be03a19
parent11f7049f71cd5d6b891e8addd3c0d9cd2a27c3e8
move schema state copy to _copy_state_from

Move the stuff needed to copy the state of a parent schema to another
including making a copy of the class_mappings and source_registrations,
registering sources and copying the storage to the private
_copy_state_from method which clone calls.
lib/DBIx/Class/Schema.pm