[Catalyst] strange namespace behavior for dbic : schema
Matt S Trout
dbix-class at trout.me.uk
Thu Jun 7 17:58:29 GMT 2007
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
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'),
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
More information about the Catalyst