[Dbix-class] mk_classaccessor now longer available in 08002

Christopher Heschong chris at wiw.org
Fri Jun 22 13:18:50 GMT 2007


On Jun 21, 2007, at 1:52 PM, Matt S Trout wrote:

> On Thu, Jun 21, 2007 at 01:16:43PM +1000, brett gardner wrote:
>> You can no longer do
>>
>> __PACKAGE__->mk_classaccessor('foo')
>>
>> in the current version of DBIx::Class (08002).
>>
>> Is this be design? I have used this feature quite extensively  
>> throughout
>> my applications.
>
> Ah, we replaced Class::Data::Inheritable with Class::Data::Accessor  
> a while
> back, and made mk_classdata proxy to mk_classaccessor.
>
> Then when we moved to Class::Accessor::Grouped the mk_classdata  
> proxy was
> moved to use that rather than mk_classaccessor in turn becoming a  
> proxy.
>
> Try adding
>
> sub mk_classaccessor { shift->mk_classdata(@_); }
>
> as a workaround and we'll fix it for 08003.

I ran into this myself and just added Class::Data::Accessor as a base  
class in my code, since that is where the method really comes from.   
Plus if you haven't upgraded your production systems to 08002 yet it  
should be compatible on either version.

--
/chris/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2409 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070622/71fa38f0/smime.bin


More information about the Dbix-class mailing list