当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractSchemaManager::_getPortableTableForeignKeysList方法代码示例

本文整理汇总了PHP中Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableTableForeignKeysList方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractSchemaManager::_getPortableTableForeignKeysList方法的具体用法?PHP AbstractSchemaManager::_getPortableTableForeignKeysList怎么用?PHP AbstractSchemaManager::_getPortableTableForeignKeysList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Doctrine\DBAL\Schema\AbstractSchemaManager的用法示例。


在下文中一共展示了AbstractSchemaManager::_getPortableTableForeignKeysList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _getPortableTableForeignKeysList

 /**
  * {@inheritdoc}
  */
 protected function _getPortableTableForeignKeysList($tableForeignKeys)
 {
     $foreignKeys = array();
     foreach ($tableForeignKeys as $tableForeignKey) {
         if (!isset($foreignKeys[$tableForeignKey['index_name']])) {
             $foreignKeys[$tableForeignKey['index_name']] = array('local_columns' => array($tableForeignKey['local_column']), 'foreign_table' => $tableForeignKey['foreign_table'], 'foreign_columns' => array($tableForeignKey['foreign_column']), 'name' => $tableForeignKey['index_name'], 'options' => array('notnull' => $tableForeignKey['notnull'], 'match' => $tableForeignKey['match'], 'onUpdate' => $tableForeignKey['on_update'], 'onDelete' => $tableForeignKey['on_delete'], 'check_on_commit' => $tableForeignKey['check_on_commit'], 'clustered' => $tableForeignKey['clustered'], 'for_olap_workload' => $tableForeignKey['for_olap_workload']));
         } else {
             $foreignKeys[$tableForeignKey['index_name']]['local_columns'][] = $tableForeignKey['local_column'];
             $foreignKeys[$tableForeignKey['index_name']]['foreign_columns'][] = $tableForeignKey['foreign_column'];
         }
     }
     return parent::_getPortableTableForeignKeysList($foreignKeys);
 }
开发者ID:Dren-x,项目名称:mobit,代码行数:16,代码来源:SQLAnywhereSchemaManager.php

示例2: _getPortableTableForeignKeysList

 /**
  * {@inheritdoc}
  */
 protected function _getPortableTableForeignKeysList($tableForeignKeys)
 {
     $foreignKeys = array();
     foreach ($tableForeignKeys as $tableForeignKey) {
         if (!isset($foreignKeys[$tableForeignKey['ForeignKey']])) {
             $foreignKeys[$tableForeignKey['ForeignKey']] = array('local_columns' => array($tableForeignKey['ColumnName']), 'foreign_table' => $tableForeignKey['ReferenceTableName'], 'foreign_columns' => array($tableForeignKey['ReferenceColumnName']), 'name' => $tableForeignKey['ForeignKey'], 'options' => array('onUpdate' => str_replace('_', ' ', $tableForeignKey['update_referential_action_desc']), 'onDelete' => str_replace('_', ' ', $tableForeignKey['delete_referential_action_desc'])));
         } else {
             $foreignKeys[$tableForeignKey['ForeignKey']]['local_columns'][] = $tableForeignKey['ColumnName'];
             $foreignKeys[$tableForeignKey['ForeignKey']]['foreign_columns'][] = $tableForeignKey['ReferenceColumnName'];
         }
     }
     return parent::_getPortableTableForeignKeysList($foreignKeys);
 }
开发者ID:TuxCoffeeCorner,项目名称:tcc,代码行数:16,代码来源:SQLServerSchemaManager.php

示例3: _getPortableTableForeignKeysList

 /**
  * {@inheritdoc}
  */
 protected function _getPortableTableForeignKeysList($tableForeignKeys)
 {
     $foreignKeys = array();
     foreach ($tableForeignKeys as $tableForeignKey) {
         $tableForeignKey = array_change_key_case($tableForeignKey, \CASE_LOWER);
         if (!isset($foreignKeys[$tableForeignKey['constraint_name']])) {
             $foreignKeys[$tableForeignKey['constraint_name']] = array('local_columns' => array($tableForeignKey['local_column']), 'foreign_table' => $tableForeignKey['foreign_table'], 'foreign_columns' => array($tableForeignKey['foreign_column']), 'name' => $tableForeignKey['constraint_name'], 'options' => array('onUpdate' => $tableForeignKey['update_rule'], 'onDelete' => $tableForeignKey['delete_rule']));
         } else {
             $foreignKeys[$tableForeignKey['constraint_name']]['local_columns'][] = $tableForeignKey['local_column'];
             $foreignKeys[$tableForeignKey['constraint_name']]['foreign_columns'][] = $tableForeignKey['foreign_column'];
         }
     }
     return parent::_getPortableTableForeignKeysList($foreignKeys);
 }
开发者ID:rpeterson,项目名称:laravel-fdb,代码行数:17,代码来源:FoundationDBSQLSchemaManager.php


注:本文中的Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableTableForeignKeysList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。