protected function tableExist($tableName)
    {
        /** @var \Doctrine\DBAL\Schema\AbstractSchemaManager $sm */
        $sm = $this->dbHandler->getConnection()->getSchemaManager();
        foreach ($sm->listTables() as $table) {
            if ($table->getName() == $tableName) {
                return true;
            }
        }

        return false;
    }
protected function tableExist($tableName)
    {
        /** @var \Doctrine\DBAL\Schema\AbstractSchemaManager $sm */
        $sm = $this->dbHandler->getConnection()->getSchemaManager();
        foreach ($sm->listTables() as $table) {
            if ($table->getName() == $tableName) {
                return true;
            }
        }

        return false;
    }
protected function tableExist ( $ tableName ) { /** @var \Doctrine\DBAL\Schema\AbstractSchemaManager $sm */ $ sm = $ this -> dbHandler -> getConnection ( ) -> getSchemaManager ( ) ; foreach ( $ sm -> listTables ( ) as $ table ) { if ( $ table -> getName ( ) == $ tableName ) { return true ; } } return false ; }
Check if a table exists in the database

@param string $tableName
@return bool
Check if a table exists in the database