|
@@ 150-157 (lines=8) @@
|
| 147 |
|
/** |
| 148 |
|
* @param userEntity $userEntity |
| 149 |
|
*/ |
| 150 |
|
public function deleteUser(userEntity $userEntity) |
| 151 |
|
{ |
| 152 |
|
$userEntity->setStatus(UserEntity::STATUS_DELETED); |
| 153 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 154 |
|
$userEntity->setEmail(null); |
| 155 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 156 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
/** |
| 160 |
|
* @param userEntity $userEntity |
|
@@ 162-169 (lines=8) @@
|
| 159 |
|
/** |
| 160 |
|
* @param userEntity $userEntity |
| 161 |
|
*/ |
| 162 |
|
public function banUser(userEntity $userEntity) |
| 163 |
|
{ |
| 164 |
|
$userEntity->setStatus(UserEntity::STATUS_BANNED); |
| 165 |
|
$userEntity->setDeletedEmail($userEntity->getEmail()); |
| 166 |
|
$userEntity->setEmail(null); |
| 167 |
|
$this->getContainer()->getEntityManager()->persist($userEntity); |
| 168 |
|
$this->getContainer()->getEntityManager()->flush($userEntity); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
/** |
| 172 |
|
* @param $status |