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
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object