public function addFeature(ECommerceFeature $feature) { $this->features[] = $feature; $feature->setProduct($this); }