[Catalyst] add components to files generated by
C::Helper::Model::DBIC::Schema
Matt S Trout
dbix-class at trout.me.uk
Tue Feb 5 17:07:57 GMT 2008
On Tue, Feb 05, 2008 at 11:18:46AM +0100, Moritz Onken wrote:
> sure I tried.
> Try InflateColumn::DateTime which overwrites the register_column
> method. It only works if it's loaded before Core.
Which is what you'd be doing with a second load_components call, which is
why I asked.
The -actual- problem is that it needs to be loaded before the *add_columns*
call. If you'd described the symptoms rather than guessing at the disease
we could have solved your problem by now.
Anyway, as John said - use a BEGIN block. That'll make the load_components
call run before add_columns (note that you'll need to include Core in it
since the first load_components won't have run yet iehter).
--
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/
More information about the Catalyst
mailing list