lib/Doctrine/DBAL/Platforms/DrizzlePlatform.php 1 location
|
@@ 232-236 (lines=5) @@
|
| 229 |
|
|
| 230 |
|
$sql[] = $query; |
| 231 |
|
|
| 232 |
|
if (isset($options['foreignKeys'])) { |
| 233 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 234 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 235 |
|
} |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
return $sql; |
| 239 |
|
} |
lib/Doctrine/DBAL/Platforms/MySqlPlatform.php 1 location
|
@@ 453-457 (lines=5) @@
|
| 450 |
|
} |
| 451 |
|
|
| 452 |
|
// Propagate foreign key constraints only for InnoDB. |
| 453 |
|
if (isset($options['foreignKeys']) && $engine === 'INNODB') { |
| 454 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 455 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 456 |
|
} |
| 457 |
|
} |
| 458 |
|
|
| 459 |
|
return $sql; |
| 460 |
|
} |
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location
|
@@ 770-774 (lines=5) @@
|
| 767 |
|
} |
| 768 |
|
} |
| 769 |
|
|
| 770 |
|
if (isset($options['foreignKeys'])) { |
| 771 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 772 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 773 |
|
} |
| 774 |
|
} |
| 775 |
|
|
| 776 |
|
return $sql; |
| 777 |
|
} |
lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php 1 location
|
@@ 289-293 (lines=5) @@
|
| 286 |
|
} |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
if (isset($options['foreignKeys'])) { |
| 290 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 291 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 292 |
|
} |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
return array_merge($sql, $commentsSql, $defaultConstraintsSql); |
| 296 |
|
} |
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location
|
@@ 1684-1688 (lines=5) @@
|
| 1681 |
|
|
| 1682 |
|
$sql[] = $query; |
| 1683 |
|
|
| 1684 |
|
if (isset($options['foreignKeys'])) { |
| 1685 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 1686 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 1687 |
|
} |
| 1688 |
|
} |
| 1689 |
|
|
| 1690 |
|
return $sql; |
| 1691 |
|
} |