|
Re: Help!: Trouble with get_object_iterator: msg#00058lang.perl.modules.dbi.rose-db-object
On 6/16/06 2:55 AM, Ron Savage wrote: > The error msg is: > Can't locate object method "meta" via package "State" at > d:/Perl/site/lib/Rose/DB/Object/Manager.pm line 786. > > which is being generated by the call to get_club_iterator() below, but I can't > see what's wrong with it. > [...] > __PACKAGE__->meta->setup > ( > [...] > foreign_keys => > [ > state => > { > class => 'State', ^^^^^ You've defined a foreign key named "state" that points to an RDBO class named "State", but no such class is defined anywhere in your code. So when the Manager tries to get_club_iterator() "with_objects => ['state']" and subsequently calls State->meta to get the metadata object for the State class, it causes an error since no such class exists. -John
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Note on docs for Rose::DB::Object, John Siracusa |
|---|---|
| Next by Date: | Rose::DB::Object V 0.722 && Clone::PP, Ron Savage |
| Previous by Thread: | Help!: Trouble with get_object_iterator, Ron Savage |
| Next by Thread: | Rose::DB::Object V 0.722 && Clone::PP, Ron Savage |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |