4 package Catalyst::TraitFor::Model::DBIC::Schema::SharedDatabaseConnection;
5 $Catalyst::TraitFor::Model::DBIC::Schema::SharedDatabaseConnection::VERSION = '0.01';
14 has _cloned_parent_model => (
18 around ACCEPT_CONTEXT => sub {
19 my ( $orig, $self, $app, @rest ) = ( shift, shift, @_ );
20 unless ( $self->_cloned_parent_model ) {
21 $self->schema->storage(
22 $app->model( $self->parent_model )->schema->storage );
23 $self->_cloned_parent_model(1);
25 $self->$orig( $app, @rest );