[CDBI] has_many self reference

Hunter Thomas archangelq at archangelq.net
Tue Feb 7 14:42:50 GMT 2006

Sad to say, fixing this was easy by switching to DBIx::Class. I didn't 
have to deal with any of the hours of attempted debugging to get a 
seemingly simple relation to function, it just worked as soon as I 
defined it. Sorry to be negative about a mature package on it's own 
list, but that's how I solved it for myself.

Perrin Harkins wrote:
> On Sun, 2006-02-05 at 07:37 -0800, Hunter Thomas wrote:
>>use base 'My::DB'; #inherits from Class::DBI::AutoLoader
> [...]
>>Couldn't load "Entry", "Can't locate object method "meta_info" via 
>>package "Entry" at 
>>line 34
> Sounds like Class::DBI::AutoLoader (which I know nothing about) has not
> set up the table yet when you hit this.  Try defining the table and it's
> columns manually.
> - Perrin

More information about the ClassDBI mailing list