[Catalyst] strange namespace behavior for dbic : schema
Guy Debord
situationist at gmail.com
Fri Jun 8 18:11:10 GMT 2007
So is this not a good option if I want specific logic in Model::Foo but not
Model::Bar ( I can't even create these without breaking )
This seems to run contrary to my reading of the documentation and tutorials,
etc.
On 6/7/07, Matt S Trout < dbix-class at trout.me.uk> wrote:
>
> 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=3Dstatic
> 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/
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org /mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@
> lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070608/964c0=
0e5/attachment-0001.htm
More information about the Catalyst
mailing list