[Catalyst] How to change base class for autogenerated Schema/*
nabble at mackler.org
Mon Jan 18 20:04:15 GMT 2010
I'm not sure about DBIC, but Rose::DBx::Garden, which creates its own
database objects in like manner to the DBIC Loader, has a feature to
insert code into the generated base class:
I guess that won't work with DBIC, and I know you said that you're
using DBIC. I just mention this for your (and others') future
reference. I started out using DBIC also. But I figure as long as
I'm automatically generating my database objects, I might as well have
the same amount of effort generate my forms and Catalyst files as
On Mon, Jan 18, 2010 at 01:15:34PM +0300, Alex Povolotsky wrote:
> I'm using Catalyst::Model::DBIC::Schema::Loader and autogenerate
> Schema/*.pm files.
> I'd like to add some common functionality to some of them, and I'd
> greatly prefer adding it in one place to copypasting code.
> How to I change base class for them? Of course that class should inherit
> from DBIx::Class. I understand.
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://firstname.lastname@example.org/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst