// if this method triggers a nested create table below, allow Doctrine to work like normal
if ($table->
hasOption(self::PROCESSING_TABLE_FLAG
)) { return;
} foreach ($this->transports
as $transport) { if (!
$transport instanceof DoctrineTransport
) { continue;
} if (!
$extraSql =
$transport->
getExtraSetupSqlForTable($table)) { continue;
} // avoid this same listener from creating a loop on this table
$table->
addOption(self::PROCESSING_TABLE_FLAG, true
);
$createTableSql =
$event->
getPlatform()->
getCreateTableSQL($table);
/*
* Add all the SQL needed to create the table and tell Doctrine
* to "preventDefault" so that only our SQL is used. This is
* the only way to inject some extra SQL.
*/