Hello I have a $row object and want to get a clone of it, which is bound to a new database connection:
my $schema = Schema->connect(...);
my $row = $schema->resultset('table')->find(1);
my $clone = $row->clone_with_cloned_connection;
# this should be somthing like this:
my $clone_schema = $row->result_source->schema->clone;
$clone_schema->storage->dbh = $clone_schema->storage->dbh->clone;
$clone = $row->clone;
$clone->set_schema($clone_schema);
Is there any way I can implement this?
Thanks,
Gerhard
signature.asc
Description: Digital signature
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
