Re: Inheritance problem

[prev] [thread] [next] [Date index for 2005/01/18]

From: Tony Bowden
Subject: Re: Inheritance problem
Date: 11:23 on 18 Jan 2005
On Tue, Jan 18, 2005 at 01:21:22PM +0200, Aleksandr Guidrevitch wrote:
> It looks like __PACKAGE__->mk_classdata('__lot_extra') in 
> TAuction::Biz::Base::Lot doesn't get executed
> since it isn't available in subclasses of TAuction::Biz::Base::Lot
> (TAuction::Biz::Lot and TAuction::Biz::Lot::Delayed)

Move the call to mk_class_data to before you set up your relationships.
When you call the has_a() it will load the class referred to, at which
point your class data hasn't yet been set up.

Tony

Inheritance problem
Aleksandr Guidrevitch 11:21 on 18 Jan 2005

Re: Inheritance problem
Tony Bowden 11:23 on 18 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52