framework/Data/Common/Mssql/TMssqlMetaData.php 1 location
|
@@ 268-276 (lines=9) @@
|
| 265 |
|
* @param TMssqlTableInfo $tableInfo table information. |
| 266 |
|
* @return bool true if column is a foreign key. |
| 267 |
|
*/ |
| 268 |
|
protected function isForeignKeyColumn($columnId, $tableInfo) |
| 269 |
|
{ |
| 270 |
|
foreach ($tableInfo->getForeignKeys() as $fk) { |
| 271 |
|
if (in_array($columnId, array_keys($fk['keys']))) { |
| 272 |
|
return true; |
| 273 |
|
} |
| 274 |
|
} |
| 275 |
|
return false; |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
/** |
| 279 |
|
* Returns all table names in the database. |
framework/Data/Common/Pgsql/TPgsqlMetaData.php 1 location
|
@@ 418-426 (lines=9) @@
|
| 415 |
|
* @param TPgsqlTableInfo $tableInfo table information. |
| 416 |
|
* @return bool true if column is a foreign key. |
| 417 |
|
*/ |
| 418 |
|
protected function isForeignKeyColumn($columnId, $tableInfo) |
| 419 |
|
{ |
| 420 |
|
foreach ($tableInfo->getForeignKeys() as $fk) { |
| 421 |
|
if (in_array($columnId, array_keys($fk['keys']))) { |
| 422 |
|
return true; |
| 423 |
|
} |
| 424 |
|
} |
| 425 |
|
return false; |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
/** |
| 429 |
|
* Returns all table names in the database. |
framework/Data/Common/Mysql/TMysqlMetaData.php 1 location
|
@@ 398-406 (lines=9) @@
|
| 395 |
|
* @param TMysqlTableInfo $tableInfo table information. |
| 396 |
|
* @return bool true if column is a foreign key. |
| 397 |
|
*/ |
| 398 |
|
protected function isForeignKeyColumn($columnId, $tableInfo) |
| 399 |
|
{ |
| 400 |
|
foreach ($tableInfo->getForeignKeys() as $fk) { |
| 401 |
|
if (in_array($columnId, array_keys($fk['keys']))) { |
| 402 |
|
return true; |
| 403 |
|
} |
| 404 |
|
} |
| 405 |
|
return false; |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
/** |
| 409 |
|
* Returns all table names in the database. |