public function repositoryExists()
    {
        $schema = $this->em->getConnection()->getSchemaManager();
        $tables = array_filter($schema->listTables(), function ($value) {
            return $value->getName() === 'migrations';
        });

        return !empty($tables);
    }
public function repositoryExists()
    {
        $schema = $this->em->getConnection()->getSchemaManager();
        $tables = array_filter($schema->listTables(), function ($value) {
            return $value->getName() === 'migrations';
        });

        return !empty($tables);
    }
public function repositoryExists ( ) { $ schema = $ this -> em -> getConnection ( ) -> getSchemaManager ( ) ; $ tables = array_filter ( $ schema -> listTables ( ) , function ( $ value ) { return $ value -> getName ( ) === 'migrations' ; } ) ; return ! empty ( $ tables ) ; }
Determine if the migration repository exists.
@return bool
Determine if the migration repository exists .