lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
public function getDropTableSQL($table)
    {
        $tableArg = $table;

        if ($table instanceof Table) {
            $table = $table->getQuotedName($this);
        }

        if (! is_string($table)) {
            throw new InvalidArgumentException('getDropTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.');
        }

        if ($this->_eventManager !== null && $this->_eventManager->hasListeners(Events::onSchemaDropTable)) {
            $eventArgs = new SchemaDropTableEventArgs($tableArg, $this);
            $this->_eventManager->dispatchEvent(Events::onSchemaDropTable, $eventArgs);

            if ($eventArgs->isDefaultPrevented()) {
                $sql = $eventArgs->getSql();

                if ($sql === null) {
                    throw new UnexpectedValueException('Default implementation of DROP TABLE was overridden with NULL');
                }

                return $sql;
            }
        }

        return 'DROP TABLE ' . $table;
    }
public function getDropTableSQL($table)
    {
        $tableArg = $table;

        if ($table instanceof Table) {
            $table = $table->getQuotedName($this);
        }

        if (! is_string($table)) {
            throw new InvalidArgumentException('getDropTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.');
        }

        if ($this->_eventManager !== null && $this->_eventManager->hasListeners(Events::onSchemaDropTable)) {
            $eventArgs = new SchemaDropTableEventArgs($tableArg, $this);
            $this->_eventManager->dispatchEvent(Events::onSchemaDropTable, $eventArgs);

            if ($eventArgs->isDefaultPrevented()) {
                $sql = $eventArgs->getSql();

                if ($sql === null) {
                    throw new UnexpectedValueException('Default implementation of DROP TABLE was overridden with NULL');
                }

                return $sql;
            }
        }

        return 'DROP TABLE ' . $table;
    }
public function getDropTableSQL ( $ table ) { $ tableArg = $ table ; if ( $ table instanceof Table ) { $ table = $ table -> getQuotedName ( $ this ) ; } if ( ! is_string ( $ table ) ) { throw new InvalidArgumentException ( 'getDropTableSQL() expects $table parameter to be string or \Doctrine\DBAL\Schema\Table.' ) ; } if ( $ this -> _eventManager !== null && $ this -> _eventManager -> hasListeners ( Events :: onSchemaDropTable ) ) { $ eventArgs = new SchemaDropTableEventArgs ( $ tableArg , $ this ) ; $ this -> _eventManager -> dispatchEvent ( Events :: onSchemaDropTable , $ eventArgs ) ; if ( $ eventArgs -> isDefaultPrevented ( ) ) { $ sql = $ eventArgs -> getSql ( ) ; if ( $ sql === null ) { throw new UnexpectedValueException ( 'Default implementation of DROP TABLE was overridden with NULL' ) ; } return $ sql ; } } return 'DROP TABLE ' . $ table ; }
Returns the SQL snippet to drop an existing table.

@param Table|string $table

@return string

@throws InvalidArgumentException
Returns the SQL snippet to drop an existing table .