Bug inscription date relance

This commit is contained in:
2021-04-12 12:59:51 +02:00
parent 1b3a0cb606
commit 22db9a6da4
2 changed files with 6 additions and 2 deletions
@@ -23,6 +23,7 @@ use AppBundle\Form\CareersType;
use AppBundle\Form\FormationsType; use AppBundle\Form\FormationsType;
use AppBundle\Form\LanguagesType; use AppBundle\Form\LanguagesType;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use \DateTime;
class SecurityController extends FOSRestController class SecurityController extends FOSRestController
{ {
@@ -14,6 +14,7 @@ use JMS\Serializer\Annotation\Groups;
use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\Type;
use AppBundle\Utils\Traits\CareerJsonTrait; use AppBundle\Utils\Traits\CareerJsonTrait;
use \DateTime;
/** /**
* @ORM\Entity(repositoryClass="AppBundle\Repository\UserRepository") * @ORM\Entity(repositoryClass="AppBundle\Repository\UserRepository")
@@ -271,8 +272,8 @@ class User extends BaseUser
$this->products = new ArrayCollection(); $this->products = new ArrayCollection();
$this->recommendations = new ArrayCollection(); $this->recommendations = new ArrayCollection();
$this->sendedRecommendations = new ArrayCollection(); $this->sendedRecommendations = new ArrayCollection();
$this->datePremiereRelance = new DateTime('2021-06-01'); $this->datePremiereRelance = new DateTime();
$this->dateDeuxiemeRelance = new DateTime('2021-06-01'); $this->dateDeuxiemeRelance = new DateTime();
} }
/*********************** /***********************
@@ -514,6 +515,8 @@ class User extends BaseUser
"appellationLibelle" => $this->getAppellationLibelle(), "appellationLibelle" => $this->getAppellationLibelle(),
"codeRome" => $this->getCodeRome(), "codeRome" => $this->getCodeRome(),
"competences" => $this->getCompetences(), "competences" => $this->getCompetences(),
"datePremiereRelance" => $this->getDatePremiereRelance(),
"dateDeuxiemeRelance" => $this->getDateDeuxiemeRelance(),
); );
return $card; return $card;
} }