I need to store relationships where a single attribute_id
may be visible in multiple store_id
and I was trying to use attribute_id
as the primary key. It would be something like this:
+--------------+----------+
| attribute_id | store_id |
+--------------+----------+
| 147 | 1 |
| 147 | 2 |
+--------------+----------+
But Magento doesn't see that with good eyes as it returns the exception Item (foo) with the same ID "x" already exists.
What is the best solution for that problem?