original_string: protected function buildDrop(array $models)
      {
          $fromSchema = $this->connection->getSchemaManager()->createSchema();
          $toSchema = clone $fromSchema;
  
          foreach ($models as $model) {
              if (!$toSchema->hasTable($model->table())) {
                  continue;
              }
  
              $toSchema->dropTable($model->table());
          }
  
          $sql = $fromSchema->getMigrateToSql($toSchema, $this->connection->getDatabasePlatform());
  
          $this->queries = array_merge($this->queries, $sql);
      }
code: protected function buildDrop(array $models)
      {
          $fromSchema = $this->connection->getSchemaManager()->createSchema();
          $toSchema = clone $fromSchema;
  
          foreach ($models as $model) {
              if (!$toSchema->hasTable($model->table())) {
                  continue;
              }
  
              $toSchema->dropTable($model->table());
          }
  
          $sql = $fromSchema->getMigrateToSql($toSchema, $this->connection->getDatabasePlatform());
  
          $this->queries = array_merge($this->queries, $sql);
      }
code_tokens: protected function buildDrop ( array $ models ) { $ fromSchema = $ this -> connection -> getSchemaManager ( ) -> createSchema ( ) ; $ toSchema = clone $ fromSchema ; foreach ( $ models as $ model ) { if ( ! $ toSchema -> hasTable ( $ model -> table ( ) ) ) { continue ; } $ toSchema -> dropTable ( $ model -> table ( ) ) ; } $ sql = $ fromSchema -> getMigrateToSql ( $ toSchema , $ this -> connection -> getDatabasePlatform ( ) ) ; $ this -> queries = array_merge ( $ this -> queries , $ sql ) ; }
docstring: Builds drop table query
  
  @param ModelInterface[] $models
docstring_tokens: Builds drop table query