Merge branch 'maint/7.0'
[ninja.git] / src / generators / orm / run_mod.php
blobe5aea8d16bb68b5f4d49b4401c09eaf6b8f9f892
1 <?php
3 require_once( '../buildlib.php' );
5 require_once( NINJA_SDK_PATH.'/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');
24 $generator->run();