|
@@ 1543-1552 (lines=10) @@
|
| 1540 |
|
foreach ($table->getColumns() as $column) { |
| 1541 |
|
/* @var \Doctrine\DBAL\Schema\Column $column */ |
| 1542 |
|
|
| 1543 |
|
if (null !== $this->_eventManager && $this->_eventManager->hasListeners(Events::onSchemaCreateTableColumn)) { |
| 1544 |
|
$eventArgs = new SchemaCreateTableColumnEventArgs($column, $table, $this); |
| 1545 |
|
$this->_eventManager->dispatchEvent(Events::onSchemaCreateTableColumn, $eventArgs); |
| 1546 |
|
|
| 1547 |
|
$columnSql = array_merge($columnSql, $eventArgs->getSql()); |
| 1548 |
|
|
| 1549 |
|
if ($eventArgs->isDefaultPrevented()) { |
| 1550 |
|
continue; |
| 1551 |
|
} |
| 1552 |
|
} |
| 1553 |
|
|
| 1554 |
|
$columnData = $column->toArray(); |
| 1555 |
|
$columnData['name'] = $column->getQuotedName($this); |
|
@@ 1577-1584 (lines=8) @@
|
| 1574 |
|
} |
| 1575 |
|
} |
| 1576 |
|
|
| 1577 |
|
if (null !== $this->_eventManager && $this->_eventManager->hasListeners(Events::onSchemaCreateTable)) { |
| 1578 |
|
$eventArgs = new SchemaCreateTableEventArgs($table, $columns, $options, $this); |
| 1579 |
|
$this->_eventManager->dispatchEvent(Events::onSchemaCreateTable, $eventArgs); |
| 1580 |
|
|
| 1581 |
|
if ($eventArgs->isDefaultPrevented()) { |
| 1582 |
|
return array_merge($eventArgs->getSql(), $columnSql); |
| 1583 |
|
} |
| 1584 |
|
} |
| 1585 |
|
|
| 1586 |
|
$sql = $this->_getCreateTableSQL($tableName, $columns, $options); |
| 1587 |
|
if ($this->supportsCommentOnStatement()) { |