yiisoft/yii2

View on GitHub
framework/views/_foreignTables.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * Creates a call for the method `yii\db\Migration::createTable()`.
 */
/* @var $foreignKeys array the foreign keys */

if (!empty($foreignKeys)):?>
 * Has foreign keys to the tables:
 *
<?php foreach ($foreignKeys as $fkData): ?>
 * - `<?= $fkData['relatedTable'] ?>`
<?php endforeach;
endif;