[CDBI] Redefine has_many relationship

Christopher H. Laco claco at chrislaco.com
Sun Sep 18 03:01:01 BST 2005

Matt S Trout wrote:
> On Sat, Sep 17, 2005 at 03:34:43PM -0400, Christopher H. Laco wrote:
>>What's the solution to this?
> 1) E-mail Tony Bowden and hope he's in a good mood
> 2) Switch to DBIx::Class which doesn't suffer from this fuckup in the first
>    place.

I'll take this with a few grains of salt because I know you. :-)

With that said, if you're going to troll the CDBI list, try and do a 
little more than "fsck0Rs CDBI, use DBIC". :-)

Now, for the solution [for me]:

>     undef(*_items);
>     undef(*add_to__items);
>     __PACKAGE__->has_many(_items => $item_class, 'cart');

That's is the original cart class. Apparently I was trying too hard with 
encantations of *CustomCart::_items and $__PACKAGE__::_items...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digitalcraftsmen.net/mailman/private/classdbi/attachments/20050917/d3b0e770/smime.bin

More information about the ClassDBI mailing list