Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function removeRegimen(RegimenInterface $regimen)
 {
     if ($this->hasRegimen($regimen)) {
         $this->regimens->removeElement($regimen);
         $regimen->setDiagnosis(null);
     }
     return $this;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function removeSample(SampleInterface $sample)
 {
     if ($this->hasSample($sample)) {
         $this->samples->removeElement($sample);
         $sample->setPatient(null);
     }
     return $this;
 }