[Catalyst] Overriding accessors in model classes

Bill Moseley moseley at hank.org
Fri Nov 11 14:51:17 CET 2005


On Fri, Nov 11, 2005 at 02:15:19PM +0100, Patryk Dwórznik wrote:
> I'm trying to override get and set functions in all model classes in  
> my application. Unfortunetely creating get and set functions in each  
> class is the only way working for me right now. When I place them in  
> MyApp::M::CDBI, from which all model classes inherit, it doesn't  
> quite work -- my debug log shows that only accessors of  
> MyApp::M::CDBI itself is overriden, not of inhereted classes. I guess  
> it has something to do with the way Class::DBI::Loader creates them,  
> but don't understand yet how it works.
> Can anybody give me a hint on how to get this working?

How are you calling loader?


-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list