PHRAS-3694 bin/maintenance clean:users finish (#4139)

* clean users

* fix help

* add usertype

* relance user connection

* unused option

* test

* send token to connect to phraseanet

* add alpha on help

* bump rc6, add alpha , fix input to integer
Co-authored-by: jygaulier <gaulier@alchemy.fr>
This commit is contained in:
Aina Sitraka
2022-10-06 19:10:15 +03:00
committed by GitHub
parent 9f349e063b
commit e4760b88f2
15 changed files with 362 additions and 170 deletions

View File

@@ -266,6 +266,16 @@ class User
*/
private $grantedApi = false;
/**
* @ORM\Column(type="integer", name="nb_inactivity_email", options={"default" = 0})
*/
private $nbInactivityEmail = 0;
/**
* @ORM\Column(type="datetime", name="last_inactivity_email", nullable=true)
*/
private $lastInactivityEmail;
/**
* Constructor
*/
@@ -1078,6 +1088,36 @@ class User
return $this;
}
public function setNbInactivityEmail($nbEnactivityEmail)
{
$this->nbInactivityEmail = $nbEnactivityEmail;
}
public function getNbInactivityEmail()
{
return $this->nbInactivityEmail;
}
/**
* @param \DateTime|null $lastInactivityEmail
*
* @return $this
*/
public function setLastInactivityEmail($lastInactivityEmail)
{
$this->lastInactivityEmail = $lastInactivityEmail;
return $this;
}
/**
* @return \DateTime|null
*/
public function getLastInactivityEmail()
{
return $this->lastInactivityEmail;
}
/**
* @return boolean
*/