public function removePart(SingleQueryReportPart $part) { $part->setSingleQueryReport(null); $this->parts->remove($part); }