public function onSchemaCreateTable(SchemaCreateTableEventArgs $args) { $generator = new CreateTableSqlGenerator($args->getPlatform(), $this->schemaManager->isPostGis2()); $args->addSql($generator->getSql($args->getTable(), $args->getColumns(), $args->getOptions()))->preventDefault(); }