function deleteFriendModel($friendId) { try { $responseDTO = new ResponseDTO(DELETE_FRIEND_FORM); $friendsDAO = new FriendsDAO(); $oldFriend = $friendsDAO->deleteFriend($friendId); SessionUtils::deleteFriendInUserLoggedFriendList($friendId); $responseDTO->setResponseSucc("friend" . $friendId); return $responseDTO; } catch (PDOException $pdoe) { throw $pdoe; } catch (UserNotAuthenticatedExceptionDTO $authExp) { throw $authExp; } catch (Exception $e) { throw $e; } }