protected function removeBorrowerCreditReport(Borrower $borrower) { $creditReport = $borrower->getCreditReport(); if (isset($creditReport)) { $this->em->remove($creditReport); $this->em->flush(); } }
protected function removeBorrowerCreditReport(Borrower $borrower) { $creditReport = $borrower->getCreditReport(); if (isset($creditReport)) { $this->em->remove($creditReport); $this->em->flush(); } }