[Catalyst] Reference to the connected Model::DBIC schema for testing?
Matt S Trout
dbix-class at trout.me.uk
Wed Oct 11 01:21:49 CEST 2006
Ted Carnahan wrote:
> I have two questions:
>
> 1) Is there any way to get a reference to the connected Model::DBIC
> schema from an external script (e.g. using Test::WWW::Mechanize::Catalyst)?
my $model_dbic_schema_object = MyApp->model('Foo');
my $dbix_class_schema_object = $model_dbic_schema_object->schema;
> 2) Is it a totally insane idea to try?
Nah :)
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list