protected function tableExists($tableName)
    {
        $rs = $this->getEntityManager()->getConnection()->fetchAll('SHOW TABLE STATUS');

        foreach ($rs as $row) {
            if ($tableName === $row['Name']) {
                return true;
            }
        }

        return false;
    }
protected function tableExists($tableName)
    {
        $rs = $this->getEntityManager()->getConnection()->fetchAll('SHOW TABLE STATUS');

        foreach ($rs as $row) {
            if ($tableName === $row['Name']) {
                return true;
            }
        }

        return false;
    }
protected function tableExists ( $ tableName ) { $ rs = $ this -> getEntityManager ( ) -> getConnection ( ) -> fetchAll ( 'SHOW TABLE STATUS' ) ; foreach ( $ rs as $ row ) { if ( $ tableName === $ row [ 'Name' ] ) { return true ; } } return false ; }
Tells whether the table exists or not.

@param $tableName

@returns Boolean
Tells whether the table exists or not .