logo       

Re: Help!: Trouble with get_object_iterator: msg#00058

lang.perl.modules.dbi.rose-db-object

Subject: Re: Help!: Trouble with get_object_iterator

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>
Google Custom Search

News | FAQ | advertise