On 5/1/06 7:53 PM, Guillermo Roditi wrote:
> use ing works just dandy, its when i relationship() the modules that it
> breaks : /
As I suspected, it was a timing issue for the circular dependencies. I'll
work on making the Loader account for these automatically in its generated
code. In the meantime, here's a fix for the code you sent earlier.
In the Cantella::PaperKiller::DB::User module, remove these lines:
use Cantella::PaperKiller::DB::DB::Object::AutoBase1;
our @ISA = qw(Cantella::PaperKiller::DB::DB::Object::AutoBase1);
and then add this line right below the "use strict" statement at the top:
use base 'Cantella::PaperKiller::DB::DB::Object::AutoBase1';
This ensures that Cantella::PaperKiller::DB::User "isa" Rose::DB::Object-
derived class by the end of compile time. Earlier, using the assignment to
@ISA instead of "use base," this inheritance relationship was established at
runtime. Due to the circular dependencies, "the cat caught it's tail" to so
speak and tried to get the ->meta object from the
Cantella::PaperKiller::DB::User class before it had gotten a chance to
inherit from its base class.
-John
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object