On 9/5/07, Clayton Scott <[EMAIL PROTECTED]> wrote: > I can get the columns from both tables but not the table name. > Previously when generating forms from table definitions I've gotten > around this by actually loading the FK class. I can't in this case > because the class hasn't been generated yet.
All possible inter-class links (fks, rels, etc.) may not exist until the Loader finishes loading all requested tables, so you need to defer the creation of your .pm files until then if you need that information for your POD. To do this,create all your classes in memory first (i.e., make_classes() instead of make_modules()) and then iterate over your list of (now completely loaded) classes, doing essentially what make_modules() does to produce all your .pm files. (See the source for make_modules(); even with all the generic pre/postamble stuff, it's only ~100 lines of code) -John ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object