コード例 #1
0
 /**
  * @param string $table
  * @param string $columns
  *
  * @return int
  */
 public function dropForeignKey($table, $columns)
 {
     $name = $this->getConnection()->getForeignKeyName($table, $columns);
     $table = $this->getConnection()->addTablePrefix($table);
     return parent::dropForeignKey($name, $table);
 }
コード例 #2
0
ファイル: DbCommand.php プロジェクト: kentonquatman/portfolio
 /**
  * @param string $table
  * @param string $columns
  * @return int
  */
 public function dropForeignKey($table, $columns)
 {
     $name = DbHelper::getForeignKeyName($table, $columns);
     $table = DbHelper::addTablePrefix($table);
     return parent::dropForeignKey($name, $table);
 }