protected function createModels()
    {
        $path           = $this->option('path');
        $namespace      = $this->option('namespace');
        $connectionName = $this->option('connection');

        $tableNames = $this->getDatabaseTableNames($connectionName);

        /** @var \ViKon\DbExporter\Meta\Model[] $models */
        $models = [];
        foreach ($tableNames as $tableName) {
            if ($this->skipTable($tableName)) {
                continue;
            }

            $models[$tableName] = new Model($connectionName, $tableName);
            $models[$tableName]->setPath($path);
            $models[$tableName]->setNamespace($namespace);
            $models[$tableName]->map();
        }

        return $models;
    }
protected function createModels()
    {
        $path           = $this->option('path');
        $namespace      = $this->option('namespace');
        $connectionName = $this->option('connection');

        $tableNames = $this->getDatabaseTableNames($connectionName);

        /** @var \ViKon\DbExporter\Meta\Model[] $models */
        $models = [];
        foreach ($tableNames as $tableName) {
            if ($this->skipTable($tableName)) {
                continue;
            }

            $models[$tableName] = new Model($connectionName, $tableName);
            $models[$tableName]->setPath($path);
            $models[$tableName]->setNamespace($namespace);
            $models[$tableName]->map();
        }

        return $models;
    }
protected function createModels ( ) { $ path = $ this -> option ( 'path' ) ; $ namespace = $ this -> option ( 'namespace' ) ; $ connectionName = $ this -> option ( 'connection' ) ; $ tableNames = $ this -> getDatabaseTableNames ( $ connectionName ) ; /** @var \ViKon\DbExporter\Meta\Model[] $models */ $ models = [ ] ; foreach ( $ tableNames as $ tableName ) { if ( $ this -> skipTable ( $ tableName ) ) { continue ; } $ models [ $ tableName ] = new Model ( $ connectionName , $ tableName ) ; $ models [ $ tableName ] -> setPath ( $ path ) ; $ models [ $ tableName ] -> setNamespace ( $ namespace ) ; $ models [ $ tableName ] -> map ( ) ; } return $ models ; }
Build up meta data

@return \ViKon\DbExporter\Meta\Model[]
Build up meta data