public function buildPropelModels()
    {
        $fs = new Filesystem();

        // cache testing
        if ($fs->exists($this->getPropelModelDir() . 'hash')
            && file_get_contents($this->getPropelCacheDir() . 'hash') === file_get_contents($this->getPropelModelDir() . 'hash')) {
            return;
        }

        $fs->remove($this->getPropelModelDir());

        $this->runCommand(
            new ModelBuildCommand(),
            [
                '--config-dir' => $this->getPropelConfigDir(),
                '--schema-dir' => $this->getPropelSchemaDir(),
            ]
        );

        $fs->copy(
            $this->getPropelCacheDir() . 'hash',
            $this->getPropelModelDir() . 'hash'
        );
    }
public function buildPropelModels()
    {
        $fs = new Filesystem();

        // cache testing
        if ($fs->exists($this->getPropelModelDir() . 'hash')
            && file_get_contents($this->getPropelCacheDir() . 'hash') === file_get_contents($this->getPropelModelDir() . 'hash')) {
            return;
        }

        $fs->remove($this->getPropelModelDir());

        $this->runCommand(
            new ModelBuildCommand(),
            [
                '--config-dir' => $this->getPropelConfigDir(),
                '--schema-dir' => $this->getPropelSchemaDir(),
            ]
        );

        $fs->copy(
            $this->getPropelCacheDir() . 'hash',
            $this->getPropelModelDir() . 'hash'
        );
    }
public function buildPropelModels ( ) { $ fs = new Filesystem ( ) ; // cache testing if ( $ fs -> exists ( $ this -> getPropelModelDir ( ) . 'hash' ) && file_get_contents ( $ this -> getPropelCacheDir ( ) . 'hash' ) === file_get_contents ( $ this -> getPropelModelDir ( ) . 'hash' ) ) { return ; } $ fs -> remove ( $ this -> getPropelModelDir ( ) ) ; $ this -> runCommand ( new ModelBuildCommand ( ) , [ '--config-dir' => $ this -> getPropelConfigDir ( ) , '--schema-dir' => $ this -> getPropelSchemaDir ( ) , ] ) ; $ fs -> copy ( $ this -> getPropelCacheDir ( ) . 'hash' , $ this -> getPropelModelDir ( ) . 'hash' ) ; }
Generate the base Propel models.
@throws \Exception
Generate the base Propel models .