[Catalyst] Overriding accessors in model classes

Matt S Trout dbix-class at trout.me.uk
Sat Nov 12 21:28:40 CET 2005


On Sat, Nov 12, 2005 at 09:07:18PM +0100, Patryk Dwórznik wrote:
> 
> On Nov 11, 2005, at 2:51 PM, Bill Moseley wrote:
> >
> >
> >How are you calling loader?
> 
> Actually I'm not. It's being called in Catalyst::Model::CDBI.
> I placed get/set functions in a class directly inheriting from  
> C::M::CDBI. Then tried to use additional_base_classes  in the config  
> hash to force Class::DBI::Loader to use my class with set/get  
> functions as a base. With no success whatsoever.

Yep, that ain't gonna work. You're looking for left_base_classes :)

-- 
     Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list