Entity types have bundles, but in Commerce Products (perhaps other places) the entity's 'bundle' is named 'type' instead.
This was causing an error when I ported Commerce Feeds from Drupal 7 and tried to import an image field that was tied to my product.
To get it working, all I did was add this to the class function list in commerce/modules/product/includes/commerce_product.entity.inc:
public function bundle() {
return $this->type;
}
Entity types have bundles, but in Commerce Products (perhaps other places) the entity's 'bundle' is named 'type' instead.
This was causing an error when I ported Commerce Feeds from Drupal 7 and tried to import an image field that was tied to my product.
To get it working, all I did was add this to the class function list in commerce/modules/product/includes/commerce_product.entity.inc:
public function bundle() {return $this->type;}