/**
  * Remove the user from the database
  */
 public function remove()
 {
     if ($this->element->getKeepActive()) {
         return;
     }
     $this->element->setDeletedAt(new \DateTime());
     $this->doctrine->getManager()->persist($this->element);
 }
Beispiel #2
0
 /**
  * Connected user as external
  *
  * @return bool
  */
 public function isExternal()
 {
     return $this->isUser() && $this->user->getKeepActive();
 }