protected function handleModelTables()
    {
        if (!$this->getModelReader()->isCompatibleVersion()) {
            throw new \InvalidArgumentException('Wrong model version.');
        } // if

        $bar = $this->output->createProgressBar();

        $bar->start(count($tables = $this->getModelTables()));

        /** @var TableMigration $tableObject */
        foreach ($this->createTableRelations($tables) as $tableObject) {
            $tableObject->save($this);

            $bar->advance();
        } // foreach

        return $this;
    }
protected function handleModelTables()
    {
        if (!$this->getModelReader()->isCompatibleVersion()) {
            throw new \InvalidArgumentException('Wrong model version.');
        } // if

        $bar = $this->output->createProgressBar();

        $bar->start(count($tables = $this->getModelTables()));

        /** @var TableMigration $tableObject */
        foreach ($this->createTableRelations($tables) as $tableObject) {
            $tableObject->save($this);

            $bar->advance();
        } // foreach

        return $this;
    }
protected function handleModelTables ( ) { if ( ! $ this -> getModelReader ( ) -> isCompatibleVersion ( ) ) { throw new \ InvalidArgumentException ( 'Wrong model version.' ) ; } // if $ bar = $ this -> output -> createProgressBar ( ) ; $ bar -> start ( count ( $ tables = $ this -> getModelTables ( ) ) ) ; /** @var TableMigration $tableObject */ foreach ( $ this -> createTableRelations ( $ tables ) as $ tableObject ) { $ tableObject -> save ( $ this ) ; $ bar -> advance ( ) ; } // foreach return $ this ; }
Loads the model tables out of the model file.
@return MakeMWBModel
@todo   We need to save a way to save the relations in the models.
Loads the model tables out of the model file .