Re: [RDBO] make methods error

2007-05-21 Thread James Masters
Thanks, John. Well it does point to it being my error but I just can't see it:- perhaps I have a syntax error that's staring me in the face. If I catch the error, the output is as follows: Error attempting to get relationship named countryname of type "one to one" from object class MG::Countrygr

Re: [RDBO] make methods error

2007-05-21 Thread John Siracusa
On 5/21/07, James Masters <[EMAIL PROTECTED]> wrote: > foreach my $relobj (@relationships) { > my $type = $relobj->type; > my $relname = $relobj->name; > next unless ($type eq 'many to one' or $type eq 'one to one'); > my $egsubobj = $egobj->$relname; > > This code w

[RDBO] make methods error

2007-05-21 Thread James Masters
I'm struggling to solve something that I think is rather peculiar and was hoping someone could provide a pointer. It happens in some code that tries to obtain the object from a "... to one" relationship. foreach my $relobj (@relationships) { my $type = $relobj->type; my $relname =