[CDBI] self-referential has_many possible with subclass?

[prev] [thread] [next] [Date index for 2005/08/13]

From: Phil Mitchell
Subject: [CDBI] self-referential has_many possible with subclass?
Date: 00:09 on 13 Aug 2005
In MyApp::Page ...
MyApp::Page->has_many( comments =3D> 'MyApp::Page::Comment );

And in MyApp::Page::Comment...
MyApp::Page::Comment->has_a( refers_to =3D> MyApp::Page );

Comment is a subclass of Page.

But the compiler dies with:

Error:  Can't locate object method "meta_info" via package
"MyApp::Page::Comment" at
/usr/local/share/perl/5.8.4/Class/DBI/Relationship/HasMany.pm line 28,
<DATA> line 22008.

Is this just not possible?

--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
2People Blog: http://2-people.blogspot.com/
2People site: http://www.2people.org

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

[CDBI] self-referential has_many possible with subclass?
Phil Mitchell 00:09 on 13 Aug 2005

Generated at 13:17 on 19 Aug 2005 by mariachi v0.52