Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Products currently have a single value store_id reference field declared in baseFieldDefinitions.
However, we need an unlimited value “stores” reference field instead, because a product will be able to belong to multiple stores.
Comment | File | Size | Author |
---|
Comments
Comment #2
dbolinovski CreditAttribution: dbolinovski commentedComment #3
dbolinovski CreditAttribution: dbolinovski commentedComment #5
bojanz CreditAttribution: bojanz at Centarro commentedCommitted in https://github.com/commerceguys/commerce/commit/adf096d159989a9c5570420d...
I cleaned up the tests a bit, expanded the test coverage to include getStores(), added a setStoreIds() setter, reworded the docblocks on the interface with rszrama's suggestions.