[Catalyst] add components to files generated by C::Helper::Model::DBIC::Schema

Moritz Onken onken at houseofdesign.de
Tue Feb 5 10:18:46 GMT 2008


sure I tried.
Try InflateColumn::DateTime which overwrites the register_column  
method. It only works if it's loaded before Core.


Am 05.02.2008 um 10:44 schrieb Matt S Trout:

> On Mon, Feb 04, 2008 at 08:18:27PM +0100, Moritz Onken wrote:
>> Hi,
>>
>> I need to add some components to some packages created by
>> Catalyst::Helper::Model::DBIC::Schema.
>
> Which uses DBIx::Class::Schema::Loader so this question would have  
> been
> better asked on the DBIC list, but never mind.
>
>> I tried adding them under the md5 checksum so updates wont break, but
>> some of them needed to be placed before Core is loaded.
>
> Why?
>
> No component I've ever written requires that. No component I've ever  
> used
> requires that.
>
> Doing an extra __PACKAGE__->load_components at the bottom of the file
> is equivalent to adding the contents of that call in front of core  
> in the
> original load_components - why won't that work? Did you even try  
> it? :)
>
> -- 
>      Matt S Trout       Need help with your Catalyst or DBIx::Class  
> project?
>   Technical Director                    http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd.  Want a managed development or deployment  
> platform?
> http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list