getSql() public method

public getSql ( Doctrine\DBAL\Schema\Table $table, array $columns, array $options = [] )
$table Doctrine\DBAL\Schema\Table
$columns array
$options array
 public function onSchemaCreateTable(SchemaCreateTableEventArgs $args)
 {
     $generator = new CreateTableSqlGenerator($args->getPlatform(), $this->schemaManager->isPostGis2());
     $args->addSql($generator->getSql($args->getTable(), $args->getColumns(), $args->getOptions()))->preventDefault();
 }