histogram: Make histograms crash less
[ninja.git] / src / generators / orm / run_mod.php
blobf568092768d04574bf94edaf3ad469ab6f6f2977
1 <?php
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');
24 $generator->run();