[CDBI] self-referential has_many possible with subclass?
seasprocket at gmail.com
Sat Aug 13 01:09:50 BST 2005
In MyApp::Page ...
MyApp::Page->has_many( comments => 'MyApp::Page::Comment );
And in MyApp::Page::Comment...
MyApp::Page::Comment->has_a( refers_to => MyApp::Page );
Comment is a subclass of Page.
But the compiler dies with:
Error: Can't locate object method "meta_info" via package
/usr/local/share/perl/5.8.4/Class/DBI/Relationship/HasMany.pm line 28,
<DATA> line 22008.
Is this just not possible?
2People Blog: http://2-people.blogspot.com/
2People site: http://www.2people.org
More information about the ClassDBI