>>>>> "Ask" == Ask Bjørn Hansen <[EMAIL PROTECTED]> writes:
Ask> Bug, missing feature or am I doing something wrong? :-) If I recall correctly what John IM'ed me one day, once ->make_classes is called, the meta data has already been "used" to create everything else that is interesting. You'll need to "initialize" again the parts of anything you change that the meta-data might have affected, and probably keep ->make_classes from initializing those parts ahead of that. I think this part of Rose::DB::Object::Loader's page is relevant: Any remaining name/value parameters will be passed on to the call to auto_initialize used to set up each class. For example, to ask the loader not to create any relationships, pass the "with_relationships" parameter with a false value. $loader->make_classes(with_relationships => 0); This parameter will be passed on to the auto_initialize method, which, in turn, will pass the parameter on to its own call to the auto_init_relationships method. See the Rose::DB::Object::Metadata documentation for more information on these methods. So what you'll want is to figure out what shouldn't be initialized before you patch meta, then patch meta, then finally call *those* initialize methods. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ------------------------------------------------------------------------- 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 Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object