public function getContact() { return $this->contact; }
/** * @param User $user */ protected function persistContact(User $user) { if ($contact = $user->getContact()) { $this->archiveEmail($user, $contact); $this->persistContactAddress($contact); $this->entityManager->persist($contact); } }