|
@@ 181-188 (lines=8) @@
|
| 178 |
|
/** |
| 179 |
|
* @param userEntity $userEntity |
| 180 |
|
*/ |
| 181 |
|
public function deleteUser(userEntity $userEntity) |
| 182 |
|
{ |
| 183 |
|
$userEntity->setStatus(UserEntity::STATUS_DELETED); |
| 184 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 185 |
|
$userEntity->setEmail(null); |
| 186 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 187 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
/** |
| 191 |
|
* @param userEntity $userEntity |
|
@@ 193-200 (lines=8) @@
|
| 190 |
|
/** |
| 191 |
|
* @param userEntity $userEntity |
| 192 |
|
*/ |
| 193 |
|
public function banUser(userEntity $userEntity) |
| 194 |
|
{ |
| 195 |
|
$userEntity->setStatus(UserEntity::STATUS_BANNED); |
| 196 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 197 |
|
$userEntity->setEmail(null); |
| 198 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 199 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 200 |
|
} |
| 201 |
|
|
| 202 |
|
/** |
| 203 |
|
* @param $status |