On Thu, Jun 07, 2007 at 11:35:00AM -0500, Guy Debord wrote:
> Using the helpers, I created a Model Bar
> 
> tmp_server lists all of its classes and instances like such...
> 
> | TMP::Model::Bar                                          | instance |
> | TMP::Model::Bar::Bar                              | class    |
> | TMP::Model::Bar::HeHe                             | class    |
> | TMP::Model::Bar::HaHa                              | class    |
> 
> This continues for every table in the schema. Each has a prefix of Bar.
> 
> if I create another model using the helper, called Foo, with the same
> schema object, it repeats. Every table in the schema, prefixed with
> Foo.

You only need one DBIC::Schema model per DBIx::Class::Schema class - try
calling it Model::DB or something and then just use ->model('DB::Foo'),
->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/ 

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to