示例#1
0
 /**
  * {@inheritdoc}
  */
 public function removeBrand(DrugInterface $brand)
 {
     if ($this->hasBrand($brand)) {
         $this->brands->removeElement($brand);
         $brand->setGeneric(null);
     }
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function removeDrug(DrugInterface $drug)
 {
     if ($this->hasDrug($drug)) {
         $this->drugs->removeElement($drug);
         $drug->removeGroup($this);
     }
     return $this;
 }