|
@@ 96-103 (lines=8) @@
|
| 93 |
|
/** |
| 94 |
|
* @param userEntity $userEntity |
| 95 |
|
*/ |
| 96 |
|
public function deleteUser(userEntity $userEntity) |
| 97 |
|
{ |
| 98 |
|
$userEntity->setStatus(UserEntity::STATUS_DELETED); |
| 99 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 100 |
|
$userEntity->setEmail(null); |
| 101 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 102 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |
| 106 |
|
* @param userEntity $userEntity |
|
@@ 108-115 (lines=8) @@
|
| 105 |
|
/** |
| 106 |
|
* @param userEntity $userEntity |
| 107 |
|
*/ |
| 108 |
|
public function banUser(userEntity $userEntity) |
| 109 |
|
{ |
| 110 |
|
$userEntity->setStatus(UserEntity::STATUS_BANNED); |
| 111 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 112 |
|
$userEntity->setEmail(null); |
| 113 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 114 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
/** |
| 118 |
|
* @param $status |