I got some help from the DBIx list today which helped me get the txn_do()
method working for my schema which is created with the loader
Schema
package kRadDB;
use strict;
use base qw/DBIx::Class::Schema::Loader/;
__PACKAGE__-loader_options(
relationships = 1,
);
The solution
Try this:
$c-model('kRadDB')-result_source-schema
On 5/25/07, Jason Konrad [EMAIL PROTECTED] wrote:
This does accomplish what I was trying to do but aren't there some
connections around that I could use rather than manually connecting each
time I need to do this transaction?
On 5/25/07, Eden Cardim [EMAIL PROTECTED] wrote:
You need to ask for the model name that inherits from
Catalyst::Model::DBIC::Schema, the one that has __PACKAGE__-config(
schema_class = 'kRadDB', config_info = '...' ) in it, not the schema
class.
oops, s/config/connect/
--
Eden Cardim
Thanks for the help. With your suggestion I managed to track down what was
going on. The error I was seeing was coming from a unit test that I wrote
using a mocked application (that someone else wrote). It turns out that the
$c-model method was being mocked and it would only return result