|
@@ 1553-1562 (lines=10) @@
|
| 1550 |
|
foreach ($table->getColumns() as $column) { |
| 1551 |
|
/* @var \Doctrine\DBAL\Schema\Column $column */ |
| 1552 |
|
|
| 1553 |
|
if (null !== $this->_eventManager && $this->_eventManager->hasListeners(Events::onSchemaCreateTableColumn)) { |
| 1554 |
|
$eventArgs = new SchemaCreateTableColumnEventArgs($column, $table, $this); |
| 1555 |
|
$this->_eventManager->dispatchEvent(Events::onSchemaCreateTableColumn, $eventArgs); |
| 1556 |
|
|
| 1557 |
|
$columnSql = array_merge($columnSql, $eventArgs->getSql()); |
| 1558 |
|
|
| 1559 |
|
if ($eventArgs->isDefaultPrevented()) { |
| 1560 |
|
continue; |
| 1561 |
|
} |
| 1562 |
|
} |
| 1563 |
|
|
| 1564 |
|
$columnData = $column->toArray(); |
| 1565 |
|
$columnData['name'] = $column->getQuotedName($this); |
|
@@ 1587-1594 (lines=8) @@
|
| 1584 |
|
} |
| 1585 |
|
} |
| 1586 |
|
|
| 1587 |
|
if (null !== $this->_eventManager && $this->_eventManager->hasListeners(Events::onSchemaCreateTable)) { |
| 1588 |
|
$eventArgs = new SchemaCreateTableEventArgs($table, $columns, $options, $this); |
| 1589 |
|
$this->_eventManager->dispatchEvent(Events::onSchemaCreateTable, $eventArgs); |
| 1590 |
|
|
| 1591 |
|
if ($eventArgs->isDefaultPrevented()) { |
| 1592 |
|
return array_merge($eventArgs->getSql(), $columnSql); |
| 1593 |
|
} |
| 1594 |
|
} |
| 1595 |
|
|
| 1596 |
|
$sql = $this->_getCreateTableSQL($tableName, $columns, $options); |
| 1597 |
|
if ($this->supportsCommentOnStatement()) { |