Re: [CDBI] has_many self reference
[prev]
[thread]
[next]
[Date index for 2006/02/07]
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
>>/usr/local/lib/perl5/site_perl/5.8.7/Class/DBI/Relationship/HasMany.pm
>>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
>
_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi