Configurable product super attribute Integrity constraint violation error












4















I have a script that create new configurable product, but I get an error when I try to save the super attribute price configuration, here's my code:



function createConf(){
//other code before...

$configProduct = Mage::getModel('catalog/product');
//Load the 3 simple products already created
$idIT = 5;
$idEU = 6;
$idRW = 7;
$_productSIT = Mage::getModel('catalog/product')->load($idIT);
$_productSEU = Mage::getModel('catalog/product')->load($idEU);
$_productSRW = Mage::getModel('catalog/product')->load($idRW);
$configProduct
->setWebsiteIds(1)
->setAttributeSetId(4)
->setTypeId('configurable')
->setCreatedAt(strtotime('now'))
->setSku($skuNew)//I have defined this variable before and it's value it's taken from an external database
->setStatus(1)
->setTaxClassId(4)
->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)
->setPrice($_productSIT->getPrice())
->setDescription('descr')
->setShortDescription('short descr')
->setStockData(array(
'use_config_manage_stock' => 0,
'manage_stock' => 1,
'is_in_stock' => 1,
)
);

// [...] after that I set all the other attributes like name and so on...

$listinoId = Mage::getResourceModel('eav/entity_attribute')
->getIdByCode('catalog_product', 'listino');

$configProduct->getTypeInstance()->setUsedProductAttributeIds(array($listinoId));
$configurableAttributesData = $configProduct->getTypeInstance()->getConfigurableAttributesAsArray();
$configProduct->setCanSaveConfigurableAttributes(true);
$configProduct->setConfigurableAttributesData($configurableAttributesData);

$configurableProductsData = array();
$configurableProductsData[$idIT] = array(
'0' => array(
'label' => $_productSIT->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSIT->getListino(),
'is_percent' => '0',
'pricing_value' => '0'
)
);
$configurableProductsData[$idEU] = array(
'0' => array(
'label' => $_productSEU->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSEU->getListino(),
'pricing_value' => '0'
)
);
$configurableProductsData[$idRW] = array(
'0' => array(
'label' => $_productSRW->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSRW->getListino(),
'pricing_value' => '0'
)
);

$configProduct->setConfigurableProductsData($configurableProductsData);
$configProduct->setConfigurableAttributesData($configurableAttributesData);
$configProduct->save();

//Now I call the function to update the super attribute price
insertPriceConf($configProduct->getId(), $_productSRW->getPrice(), $_productSIT->getPrice(), $_productSEU->getPrice());}

function insertPriceConf($id, $prezzoRW, $prezzoBase, $prezzoEU){
$product = Mage::getSingleton("catalog/Product")->load($id);
$associatedProducts = $product->getTypeInstance()->getConfigurableAttributesAsArray(($product));

foreach ($associatedProducts as $attributeData) {
$idAt = isset($attributeData['id']) ? $attributeData['id'] : null;
$size = sizeof($attributeData['values']);
for ($j = 0; $j < $size; $j++) {
if ($attributeData['values'][$j]['label'] == 'IT') {
$attributeData['values'][$j]['pricing_value'] = '0';
}
if ($attributeData['values'][$j]['label'] == 'RW') {
$attributeData['values'][$j]['pricing_value'] = $prezzoRW;
}
if ($attributeData['values'][$j]['label'] == 'EU') {
$attributeData['values'][$j]['pricing_value'] = $prezzoEU;
}

try {
Mage::getModel('catalog/product_type_configurable_attribute')
->setData($attributeData)
->setId($idAt)
->setStoreId(1)
->setProductId($product->getId())
->save();

} catch (Exception $e) {
var_dump($e->getMessage());
}
}
}
}


My problem is that I use these function in a loop because I need to insert new products taken from an external database, when I run the code the first configurable product is created correctly, with the super attribute price and so on, but from the second one to the last, the product is created, and there are also the associated simple product but I cannot set the price of the super attribute, this is the error given:




SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4606-176' for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID', query was: UPDATE `catalog_product_super_attribute` SET `product_id` = ?, `attribute_id` = ?, `position` = ? WHERE (product_super_attribute_id='758')




Please help me. I tried everything found on the internet but nothing works










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • I have answer to a similar question here magento.stackexchange.com/questions/50131/…

    – Vincent L'Ecluse
    Dec 29 '15 at 12:19
















4















I have a script that create new configurable product, but I get an error when I try to save the super attribute price configuration, here's my code:



function createConf(){
//other code before...

$configProduct = Mage::getModel('catalog/product');
//Load the 3 simple products already created
$idIT = 5;
$idEU = 6;
$idRW = 7;
$_productSIT = Mage::getModel('catalog/product')->load($idIT);
$_productSEU = Mage::getModel('catalog/product')->load($idEU);
$_productSRW = Mage::getModel('catalog/product')->load($idRW);
$configProduct
->setWebsiteIds(1)
->setAttributeSetId(4)
->setTypeId('configurable')
->setCreatedAt(strtotime('now'))
->setSku($skuNew)//I have defined this variable before and it's value it's taken from an external database
->setStatus(1)
->setTaxClassId(4)
->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)
->setPrice($_productSIT->getPrice())
->setDescription('descr')
->setShortDescription('short descr')
->setStockData(array(
'use_config_manage_stock' => 0,
'manage_stock' => 1,
'is_in_stock' => 1,
)
);

// [...] after that I set all the other attributes like name and so on...

$listinoId = Mage::getResourceModel('eav/entity_attribute')
->getIdByCode('catalog_product', 'listino');

$configProduct->getTypeInstance()->setUsedProductAttributeIds(array($listinoId));
$configurableAttributesData = $configProduct->getTypeInstance()->getConfigurableAttributesAsArray();
$configProduct->setCanSaveConfigurableAttributes(true);
$configProduct->setConfigurableAttributesData($configurableAttributesData);

$configurableProductsData = array();
$configurableProductsData[$idIT] = array(
'0' => array(
'label' => $_productSIT->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSIT->getListino(),
'is_percent' => '0',
'pricing_value' => '0'
)
);
$configurableProductsData[$idEU] = array(
'0' => array(
'label' => $_productSEU->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSEU->getListino(),
'pricing_value' => '0'
)
);
$configurableProductsData[$idRW] = array(
'0' => array(
'label' => $_productSRW->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSRW->getListino(),
'pricing_value' => '0'
)
);

$configProduct->setConfigurableProductsData($configurableProductsData);
$configProduct->setConfigurableAttributesData($configurableAttributesData);
$configProduct->save();

//Now I call the function to update the super attribute price
insertPriceConf($configProduct->getId(), $_productSRW->getPrice(), $_productSIT->getPrice(), $_productSEU->getPrice());}

function insertPriceConf($id, $prezzoRW, $prezzoBase, $prezzoEU){
$product = Mage::getSingleton("catalog/Product")->load($id);
$associatedProducts = $product->getTypeInstance()->getConfigurableAttributesAsArray(($product));

foreach ($associatedProducts as $attributeData) {
$idAt = isset($attributeData['id']) ? $attributeData['id'] : null;
$size = sizeof($attributeData['values']);
for ($j = 0; $j < $size; $j++) {
if ($attributeData['values'][$j]['label'] == 'IT') {
$attributeData['values'][$j]['pricing_value'] = '0';
}
if ($attributeData['values'][$j]['label'] == 'RW') {
$attributeData['values'][$j]['pricing_value'] = $prezzoRW;
}
if ($attributeData['values'][$j]['label'] == 'EU') {
$attributeData['values'][$j]['pricing_value'] = $prezzoEU;
}

try {
Mage::getModel('catalog/product_type_configurable_attribute')
->setData($attributeData)
->setId($idAt)
->setStoreId(1)
->setProductId($product->getId())
->save();

} catch (Exception $e) {
var_dump($e->getMessage());
}
}
}
}


My problem is that I use these function in a loop because I need to insert new products taken from an external database, when I run the code the first configurable product is created correctly, with the super attribute price and so on, but from the second one to the last, the product is created, and there are also the associated simple product but I cannot set the price of the super attribute, this is the error given:




SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4606-176' for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID', query was: UPDATE `catalog_product_super_attribute` SET `product_id` = ?, `attribute_id` = ?, `position` = ? WHERE (product_super_attribute_id='758')




Please help me. I tried everything found on the internet but nothing works










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • I have answer to a similar question here magento.stackexchange.com/questions/50131/…

    – Vincent L'Ecluse
    Dec 29 '15 at 12:19














4












4








4








I have a script that create new configurable product, but I get an error when I try to save the super attribute price configuration, here's my code:



function createConf(){
//other code before...

$configProduct = Mage::getModel('catalog/product');
//Load the 3 simple products already created
$idIT = 5;
$idEU = 6;
$idRW = 7;
$_productSIT = Mage::getModel('catalog/product')->load($idIT);
$_productSEU = Mage::getModel('catalog/product')->load($idEU);
$_productSRW = Mage::getModel('catalog/product')->load($idRW);
$configProduct
->setWebsiteIds(1)
->setAttributeSetId(4)
->setTypeId('configurable')
->setCreatedAt(strtotime('now'))
->setSku($skuNew)//I have defined this variable before and it's value it's taken from an external database
->setStatus(1)
->setTaxClassId(4)
->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)
->setPrice($_productSIT->getPrice())
->setDescription('descr')
->setShortDescription('short descr')
->setStockData(array(
'use_config_manage_stock' => 0,
'manage_stock' => 1,
'is_in_stock' => 1,
)
);

// [...] after that I set all the other attributes like name and so on...

$listinoId = Mage::getResourceModel('eav/entity_attribute')
->getIdByCode('catalog_product', 'listino');

$configProduct->getTypeInstance()->setUsedProductAttributeIds(array($listinoId));
$configurableAttributesData = $configProduct->getTypeInstance()->getConfigurableAttributesAsArray();
$configProduct->setCanSaveConfigurableAttributes(true);
$configProduct->setConfigurableAttributesData($configurableAttributesData);

$configurableProductsData = array();
$configurableProductsData[$idIT] = array(
'0' => array(
'label' => $_productSIT->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSIT->getListino(),
'is_percent' => '0',
'pricing_value' => '0'
)
);
$configurableProductsData[$idEU] = array(
'0' => array(
'label' => $_productSEU->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSEU->getListino(),
'pricing_value' => '0'
)
);
$configurableProductsData[$idRW] = array(
'0' => array(
'label' => $_productSRW->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSRW->getListino(),
'pricing_value' => '0'
)
);

$configProduct->setConfigurableProductsData($configurableProductsData);
$configProduct->setConfigurableAttributesData($configurableAttributesData);
$configProduct->save();

//Now I call the function to update the super attribute price
insertPriceConf($configProduct->getId(), $_productSRW->getPrice(), $_productSIT->getPrice(), $_productSEU->getPrice());}

function insertPriceConf($id, $prezzoRW, $prezzoBase, $prezzoEU){
$product = Mage::getSingleton("catalog/Product")->load($id);
$associatedProducts = $product->getTypeInstance()->getConfigurableAttributesAsArray(($product));

foreach ($associatedProducts as $attributeData) {
$idAt = isset($attributeData['id']) ? $attributeData['id'] : null;
$size = sizeof($attributeData['values']);
for ($j = 0; $j < $size; $j++) {
if ($attributeData['values'][$j]['label'] == 'IT') {
$attributeData['values'][$j]['pricing_value'] = '0';
}
if ($attributeData['values'][$j]['label'] == 'RW') {
$attributeData['values'][$j]['pricing_value'] = $prezzoRW;
}
if ($attributeData['values'][$j]['label'] == 'EU') {
$attributeData['values'][$j]['pricing_value'] = $prezzoEU;
}

try {
Mage::getModel('catalog/product_type_configurable_attribute')
->setData($attributeData)
->setId($idAt)
->setStoreId(1)
->setProductId($product->getId())
->save();

} catch (Exception $e) {
var_dump($e->getMessage());
}
}
}
}


My problem is that I use these function in a loop because I need to insert new products taken from an external database, when I run the code the first configurable product is created correctly, with the super attribute price and so on, but from the second one to the last, the product is created, and there are also the associated simple product but I cannot set the price of the super attribute, this is the error given:




SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4606-176' for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID', query was: UPDATE `catalog_product_super_attribute` SET `product_id` = ?, `attribute_id` = ?, `position` = ? WHERE (product_super_attribute_id='758')




Please help me. I tried everything found on the internet but nothing works










share|improve this question
















I have a script that create new configurable product, but I get an error when I try to save the super attribute price configuration, here's my code:



function createConf(){
//other code before...

$configProduct = Mage::getModel('catalog/product');
//Load the 3 simple products already created
$idIT = 5;
$idEU = 6;
$idRW = 7;
$_productSIT = Mage::getModel('catalog/product')->load($idIT);
$_productSEU = Mage::getModel('catalog/product')->load($idEU);
$_productSRW = Mage::getModel('catalog/product')->load($idRW);
$configProduct
->setWebsiteIds(1)
->setAttributeSetId(4)
->setTypeId('configurable')
->setCreatedAt(strtotime('now'))
->setSku($skuNew)//I have defined this variable before and it's value it's taken from an external database
->setStatus(1)
->setTaxClassId(4)
->setVisibility(Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)
->setPrice($_productSIT->getPrice())
->setDescription('descr')
->setShortDescription('short descr')
->setStockData(array(
'use_config_manage_stock' => 0,
'manage_stock' => 1,
'is_in_stock' => 1,
)
);

// [...] after that I set all the other attributes like name and so on...

$listinoId = Mage::getResourceModel('eav/entity_attribute')
->getIdByCode('catalog_product', 'listino');

$configProduct->getTypeInstance()->setUsedProductAttributeIds(array($listinoId));
$configurableAttributesData = $configProduct->getTypeInstance()->getConfigurableAttributesAsArray();
$configProduct->setCanSaveConfigurableAttributes(true);
$configProduct->setConfigurableAttributesData($configurableAttributesData);

$configurableProductsData = array();
$configurableProductsData[$idIT] = array(
'0' => array(
'label' => $_productSIT->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSIT->getListino(),
'is_percent' => '0',
'pricing_value' => '0'
)
);
$configurableProductsData[$idEU] = array(
'0' => array(
'label' => $_productSEU->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSEU->getListino(),
'pricing_value' => '0'
)
);
$configurableProductsData[$idRW] = array(
'0' => array(
'label' => $_productSRW->getAttributeText('listino'),
'attribute_id' => $listinoId,
'value_index' => $_productSRW->getListino(),
'pricing_value' => '0'
)
);

$configProduct->setConfigurableProductsData($configurableProductsData);
$configProduct->setConfigurableAttributesData($configurableAttributesData);
$configProduct->save();

//Now I call the function to update the super attribute price
insertPriceConf($configProduct->getId(), $_productSRW->getPrice(), $_productSIT->getPrice(), $_productSEU->getPrice());}

function insertPriceConf($id, $prezzoRW, $prezzoBase, $prezzoEU){
$product = Mage::getSingleton("catalog/Product")->load($id);
$associatedProducts = $product->getTypeInstance()->getConfigurableAttributesAsArray(($product));

foreach ($associatedProducts as $attributeData) {
$idAt = isset($attributeData['id']) ? $attributeData['id'] : null;
$size = sizeof($attributeData['values']);
for ($j = 0; $j < $size; $j++) {
if ($attributeData['values'][$j]['label'] == 'IT') {
$attributeData['values'][$j]['pricing_value'] = '0';
}
if ($attributeData['values'][$j]['label'] == 'RW') {
$attributeData['values'][$j]['pricing_value'] = $prezzoRW;
}
if ($attributeData['values'][$j]['label'] == 'EU') {
$attributeData['values'][$j]['pricing_value'] = $prezzoEU;
}

try {
Mage::getModel('catalog/product_type_configurable_attribute')
->setData($attributeData)
->setId($idAt)
->setStoreId(1)
->setProductId($product->getId())
->save();

} catch (Exception $e) {
var_dump($e->getMessage());
}
}
}
}


My problem is that I use these function in a loop because I need to insert new products taken from an external database, when I run the code the first configurable product is created correctly, with the super attribute price and so on, but from the second one to the last, the product is created, and there are also the associated simple product but I cannot set the price of the super attribute, this is the error given:




SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4606-176' for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID', query was: UPDATE `catalog_product_super_attribute` SET `product_id` = ?, `attribute_id` = ?, `position` = ? WHERE (product_super_attribute_id='758')




Please help me. I tried everything found on the internet but nothing works







configurable-product price error sql superattribute






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 16 '15 at 19:23









7ochem

5,73293668




5,73293668










asked Dec 16 '15 at 19:04









PipePluPipePlu

211




211





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • I have answer to a similar question here magento.stackexchange.com/questions/50131/…

    – Vincent L'Ecluse
    Dec 29 '15 at 12:19



















  • I have answer to a similar question here magento.stackexchange.com/questions/50131/…

    – Vincent L'Ecluse
    Dec 29 '15 at 12:19

















I have answer to a similar question here magento.stackexchange.com/questions/50131/…

– Vincent L'Ecluse
Dec 29 '15 at 12:19





I have answer to a similar question here magento.stackexchange.com/questions/50131/…

– Vincent L'Ecluse
Dec 29 '15 at 12:19










1 Answer
1






active

oldest

votes


















0














The error message states that a row with the given product_id and attribute_id combination already exists (there is a UNIQUE index over these columns).



I see that you use $product = Mage::getSingleton("catalog/Product")->load($id); - not sure if this is the only cause of your problem but it's definitely related.



Never use the product model as a singleton. This way you reuse the same object in each iteration of the loop and it contains cached information which is not reset on load().



Solution: Replace getSingleton() with getModel()






share|improve this answer
























  • reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

    – halk
    Jan 19 '16 at 12:26











  • The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

    – Fabian Schmengler
    Jan 19 '16 at 12:30











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f94046%2fconfigurable-product-super-attribute-integrity-constraint-violation-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The error message states that a row with the given product_id and attribute_id combination already exists (there is a UNIQUE index over these columns).



I see that you use $product = Mage::getSingleton("catalog/Product")->load($id); - not sure if this is the only cause of your problem but it's definitely related.



Never use the product model as a singleton. This way you reuse the same object in each iteration of the loop and it contains cached information which is not reset on load().



Solution: Replace getSingleton() with getModel()






share|improve this answer
























  • reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

    – halk
    Jan 19 '16 at 12:26











  • The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

    – Fabian Schmengler
    Jan 19 '16 at 12:30
















0














The error message states that a row with the given product_id and attribute_id combination already exists (there is a UNIQUE index over these columns).



I see that you use $product = Mage::getSingleton("catalog/Product")->load($id); - not sure if this is the only cause of your problem but it's definitely related.



Never use the product model as a singleton. This way you reuse the same object in each iteration of the loop and it contains cached information which is not reset on load().



Solution: Replace getSingleton() with getModel()






share|improve this answer
























  • reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

    – halk
    Jan 19 '16 at 12:26











  • The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

    – Fabian Schmengler
    Jan 19 '16 at 12:30














0












0








0







The error message states that a row with the given product_id and attribute_id combination already exists (there is a UNIQUE index over these columns).



I see that you use $product = Mage::getSingleton("catalog/Product")->load($id); - not sure if this is the only cause of your problem but it's definitely related.



Never use the product model as a singleton. This way you reuse the same object in each iteration of the loop and it contains cached information which is not reset on load().



Solution: Replace getSingleton() with getModel()






share|improve this answer













The error message states that a row with the given product_id and attribute_id combination already exists (there is a UNIQUE index over these columns).



I see that you use $product = Mage::getSingleton("catalog/Product")->load($id); - not sure if this is the only cause of your problem but it's definitely related.



Never use the product model as a singleton. This way you reuse the same object in each iteration of the loop and it contains cached information which is not reset on load().



Solution: Replace getSingleton() with getModel()







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 29 '15 at 11:57









Fabian SchmenglerFabian Schmengler

54.2k20130341




54.2k20130341













  • reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

    – halk
    Jan 19 '16 at 12:26











  • The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

    – Fabian Schmengler
    Jan 19 '16 at 12:30



















  • reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

    – halk
    Jan 19 '16 at 12:26











  • The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

    – Fabian Schmengler
    Jan 19 '16 at 12:30

















reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

– halk
Jan 19 '16 at 12:26





reusing the getModel() can bring performance improvements. Requires calling the reset() method before doing another load.

– halk
Jan 19 '16 at 12:26













The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

– Fabian Schmengler
Jan 19 '16 at 12:30





The performance improvement is negligible in comparision to the possible bugs you introduce because things are reused that you don't want to be reused.

– Fabian Schmengler
Jan 19 '16 at 12:30


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f94046%2fconfigurable-product-super-attribute-integrity-constraint-violation-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto