/** * {@inheritdoc} */ public function removeRegimen(RegimenInterface $regimen) { if ($this->hasRegimen($regimen)) { $this->regimens->removeElement($regimen); $regimen->setDiagnosis(null); } return $this; }
/** * {@inheritdoc} */ public function removeSample(SampleInterface $sample) { if ($this->hasSample($sample)) { $this->samples->removeElement($sample); $sample->setPatient(null); } return $this; }