Bug inscription date relance
This commit is contained in:
@@ -23,6 +23,7 @@ use AppBundle\Form\CareersType;
|
||||
use AppBundle\Form\FormationsType;
|
||||
use AppBundle\Form\LanguagesType;
|
||||
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
||||
use \DateTime;
|
||||
|
||||
class SecurityController extends FOSRestController
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@ use JMS\Serializer\Annotation\Groups;
|
||||
use JMS\Serializer\Annotation\Type;
|
||||
|
||||
use AppBundle\Utils\Traits\CareerJsonTrait;
|
||||
use \DateTime;
|
||||
|
||||
/**
|
||||
* @ORM\Entity(repositoryClass="AppBundle\Repository\UserRepository")
|
||||
@@ -271,8 +272,8 @@ class User extends BaseUser
|
||||
$this->products = new ArrayCollection();
|
||||
$this->recommendations = new ArrayCollection();
|
||||
$this->sendedRecommendations = new ArrayCollection();
|
||||
$this->datePremiereRelance = new DateTime('2021-06-01');
|
||||
$this->dateDeuxiemeRelance = new DateTime('2021-06-01');
|
||||
$this->datePremiereRelance = new DateTime();
|
||||
$this->dateDeuxiemeRelance = new DateTime();
|
||||
}
|
||||
|
||||
/***********************
|
||||
@@ -514,6 +515,8 @@ class User extends BaseUser
|
||||
"appellationLibelle" => $this->getAppellationLibelle(),
|
||||
"codeRome" => $this->getCodeRome(),
|
||||
"competences" => $this->getCompetences(),
|
||||
"datePremiereRelance" => $this->getDatePremiereRelance(),
|
||||
"dateDeuxiemeRelance" => $this->getDateDeuxiemeRelance(),
|
||||
);
|
||||
return $card;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user