[CDBI] Only two has_many/has_a relationships?

[prev] [thread] [next] [Date index for 2005/10/09]

From: Venky Nandagopal
Subject: [CDBI] Only two has_many/has_a relationships?
Date: 21:51 on 09 Oct 2005
I'm using Class::DBI 3.0.9 (actually Class::DBI::mysql). I just discovered
that when I have, say classes A, B, C and D

A has_many D
B has_many D
C has_many D

D has_a A
D has_a B
D has_a C

Then the "D has_a C" relationship is not recognized. I notice this when I
try to pull all D belonging to class C by saying something like

dump C->all_Ds();

Error: C is not a column of D

(the has_many relationship was defined as C->has_many( all_Ds => 'D' ); )

I also see it when I try to use the add_to_all_Ds method from class C.

Sorry this isn't a more concrete test -- can anyone help with this?

Venky

        -- 
        Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Only two has_many/has_a relationships?
Venky Nandagopal 21:51 on 09 Oct 2005

[CDBI] Re: Only two has_many/has_a relationships?
Venky Nandagopal 22:28 on 09 Oct 2005

Generated at 15:14 on 14 Oct 2005 by mariachi v0.52