lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location
|
@@ 1674-1678 (lines=5) @@
|
| 1671 |
|
|
| 1672 |
|
$sql[] = $query; |
| 1673 |
|
|
| 1674 |
|
if (isset($options['foreignKeys'])) { |
| 1675 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 1676 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 1677 |
|
} |
| 1678 |
|
} |
| 1679 |
|
|
| 1680 |
|
return $sql; |
| 1681 |
|
} |
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/SQLServerPlatform.php 1 location
|
@@ 290-294 (lines=5) @@
|
| 287 |
|
} |
| 288 |
|
} |
| 289 |
|
|
| 290 |
|
if (isset($options['foreignKeys'])) { |
| 291 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 292 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 293 |
|
} |
| 294 |
|
} |
| 295 |
|
|
| 296 |
|
return array_merge($sql, $commentsSql, $defaultConstraintsSql); |
| 297 |
|
} |
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location
|
@@ 777-781 (lines=5) @@
|
| 774 |
|
} |
| 775 |
|
} |
| 776 |
|
|
| 777 |
|
if (isset($options['foreignKeys'])) { |
| 778 |
|
foreach ((array) $options['foreignKeys'] as $definition) { |
| 779 |
|
$sql[] = $this->getCreateForeignKeySQL($definition, $tableName); |
| 780 |
|
} |
| 781 |
|
} |
| 782 |
|
|
| 783 |
|
return $sql; |
| 784 |
|
} |