|
@@ 223-230 (lines=8) @@
|
| 220 |
|
/** |
| 221 |
|
* @param userEntity $userEntity |
| 222 |
|
*/ |
| 223 |
|
public function deleteUser(userEntity $userEntity) |
| 224 |
|
{ |
| 225 |
|
$userEntity->setStatus(UserEntity::STATUS_DELETED); |
| 226 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 227 |
|
$userEntity->setEmail(null); |
| 228 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 229 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
/** |
| 233 |
|
* @param userEntity $userEntity |
|
@@ 235-242 (lines=8) @@
|
| 232 |
|
/** |
| 233 |
|
* @param userEntity $userEntity |
| 234 |
|
*/ |
| 235 |
|
public function banUser(userEntity $userEntity) |
| 236 |
|
{ |
| 237 |
|
$userEntity->setStatus(UserEntity::STATUS_BANNED); |
| 238 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 239 |
|
$userEntity->setEmail(null); |
| 240 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 241 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
/** |
| 245 |
|
* @param $status |