src/RocknRoot/StrayFw/Database/Postgres/Schema.php
public function generateModels()
    {
        $definition = $this->getDefinition();
        foreach ($definition as $modelName => $modelDefinition) {
            $type = 'model';
            if (isset($modelDefinition['type']) === true && in_array($modelDefinition['type'], [ 'enum', 'model' ]) === true) {
                $type = $modelDefinition['type'];
            }
            if ($type == 'enum') {
                $this->generateEnum($modelName, $modelDefinition);
            } else {
                $this->generateModel($modelName, $modelDefinition);
            }
        }
    }
public function generateModels()
    {
        $definition = $this->getDefinition();
        foreach ($definition as $modelName => $modelDefinition) {
            $type = 'model';
            if (isset($modelDefinition['type']) === true && in_array($modelDefinition['type'], [ 'enum', 'model' ]) === true) {
                $type = $modelDefinition['type'];
            }
            if ($type == 'enum') {
                $this->generateEnum($modelName, $modelDefinition);
            } else {
                $this->generateModel($modelName, $modelDefinition);
            }
        }
    }
public function generateModels ( ) { $ definition = $ this -> getDefinition ( ) ; foreach ( $ definition as $ modelName => $ modelDefinition ) { $ type = 'model' ; if ( isset ( $ modelDefinition [ 'type' ] ) === true && in_array ( $ modelDefinition [ 'type' ] , [ 'enum' , 'model' ] ) === true ) { $ type = $ modelDefinition [ 'type' ] ; } if ( $ type == 'enum' ) { $ this -> generateEnum ( $ modelName , $ modelDefinition ) ; } else { $ this -> generateModel ( $ modelName , $ modelDefinition ) ; } } }
Generate SQL entities' representing classes.

@see generateEnum
@see generateModel
Generate SQL entities representing classes .