3 require_once( '../buildlib.php' );
5 require_once( 'op5/generators/orm/ORMBuilder.php' );
7 class orm_generator
extends generator_module
{
8 protected function do_run() {
9 require( 'structure.php' ); /* Sets $tables */
11 $builder = new ORMBuilder();
13 $builder->generate_base();
15 foreach( $tables as $name => $structure ) {
16 $builder->generate_table($name, $tables);
19 $builder->generate_manifest( $tables );
23 $generator = new orm_generator('orm');