[Catalyst] strange namespace behavior for dbic : schema

Matt S Trout dbix-class at trout.me.uk
Thu Jun 7 22:13:51 GMT 2007


On Thu, Jun 07, 2007 at 03:40:00PM -0500, Guy Debord wrote:
> Matt et al,
> 
> All of my models -- such as TMP::Model::Foo -- created by the helper
> -- use DBIC::Schema as a base class and are configured to use
> TMP::Schema as their schema_class.

Yes. You only need *one* model per DBIC::Schema!

> tmp_create.pl model Bar DBIC::Schema TMP::Schema create=static connect_info

tmp_create.pl model DB DBIC::Schema TMP::Schema

$c->model('DB::Foo')
$c->model('DB::Bar')

etc.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list