Issue Brief
Error in fix #1
[PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_table.row_id' in 'on clause'
Environment
PHP Version: (5.6|7.0|7.1)
Magento Version: 2.1.6 Community Edition
Tweakwise Export Version: latest
Magento Deploy Mode: production & development
Third party modules: TIG_Buckaroo
Steps to reproduce
Install Magento
Install Tweakwise modules
Run the export
Actual result
Console shows a SQL error: [PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_table.row_id' in 'on clause'
Expected result
Tweakwise feed generated succesfully
I think there is an error in your fix #1 :
In vendor/emico/tweakwise-export/src/Model/Write/EavIterator.php:247 you are checking the edition of the productMetadata. But you are comparing it to CommunityProductMetadata::PRODUCT_NAME and not CommunityProductMetadata::EDITION_NAME.
I think it should be:
} elseif ($this->productMetadata->getEdition() == CommunityProductMetadata::EDITION_NAME) {
Because now it will never match the community edition (which we are running) and will always perform getAttributeSelectEnterprise() which results in an SQL error:
[PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_table.row_id' in 'on clause'
Issue Brief Error in fix #1
[PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_table.row_id' in 'on clause'
Environment
Steps to reproduce
Actual result
[PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_table.row_id' in 'on clause'
Expected result
Tweakwise feed generated succesfully
I think there is an error in your fix #1 : In vendor/emico/tweakwise-export/src/Model/Write/EavIterator.php:247 you are checking the edition of the productMetadata. But you are comparing it to
CommunityProductMetadata::PRODUCT_NAME
and notCommunityProductMetadata::EDITION_NAME
. I think it should be:} elseif ($this->productMetadata->getEdition() == CommunityProductMetadata::EDITION_NAME) {
Because now it will never match the community edition (which we are running) and will always performgetAttributeSelectEnterprise()
which results in an SQL error:[PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'attribute_table.row_id' in 'on clause'