Created
July 19, 2015 10:27
-
-
Save gplanchat/0e939ecc74bf7212c52c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/web/app/code/core/Mage/Eav/Model/Entity/Setup.php b/web/app/code/core/Mage/Eav/Model/Entity/Setup.php | |
index 6f3395e..0b56d75 100644 | |
--- a/web/app/code/core/Mage/Eav/Model/Entity/Setup.php | |
+++ b/web/app/code/core/Mage/Eav/Model/Entity/Setup.php | |
@@ -1209,12 +1209,12 @@ class Mage_Eav_Model_Entity_Setup extends Mage_Core_Model_Resource_Setup | |
$isNoDefaultTypes = $this->_getValue($options, 'no-default-types', false); | |
$customTypes = $this->_getValue($options, 'types', array()); | |
$tables = array(); | |
+ $connection = $this->getConnection(); | |
if (!$isNoCreateMainTable) { | |
/** | |
* Create table main eav table | |
*/ | |
- $connection = $this->getConnection(); | |
$mainTable = $connection | |
->newTable($this->getTable($baseTableName)) | |
->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment