3

I am afraid, i just want to know in catalog_product_entity_int table they use row_id instead of entity_id. and also other table use row_id

I don't understand difference why they use row_id instead of entity_id, what is the reason behind this change this field?

Check below screen-shoot

enter image description here

Any help would be Appreciated.

2

1 Answer 1

0

I don't think there is a reason. I think it's just another naming convention. I am porting a Magento Commerce version extension to Magento Open Source version at the moment. Disclaimer: this is just trail and error based.

The code suggests the table catalog_product_entity also uses row_id instead of entity_id.

SELECT sku from catalog_product_entity e 
inner join catalog_product_entity_int ei on e.row_id = ei.row_id

Changing both row_id to entity_id makes the query working again. I don't know if this naming has any other implications.

If there is a reason behind this I would like to know of course.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.