/** * Redeclared for backwards compatibility with Magento versions prior to * 1.6.x Community and 1.11.x Enterprise * * @param string $priTableName * @param string $priColumnName * @param string $refTableName * @param string $refColumnName * * @return mixed|string */ public function getFkName($priTableName, $priColumnName, $refTableName, $refColumnName) { if (method_exists(get_parent_class(__CLASS__), 'getFkName')) { return parent::getFkName($priTableName, $priColumnName, $refTableName, $refColumnName); } else { return Goodahead_Core_Model_Resource_Setup_Compatibility::getForeignKeyName($this->getTable($priTableName), $priColumnName, $this->getTable($refTableName), $refColumnName); } }