conflict resolved
This commit is contained in:
@@ -6,16 +6,15 @@ use App\Repository\EtatRepository;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
#[ORM\Entity(repositoryClass: EtatRepository::class)]
|
||||
class Etat
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: 'uuid', unique: true)]
|
||||
#[ORM\Column(type: 'guid', unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $idEtat = null;
|
||||
private ?string $idEtat = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $libelle = null;
|
||||
@@ -28,11 +27,10 @@ class Etat
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->idEtat = Uuid::v4(); // Génération automatique d'un UUID
|
||||
$this->sorties = new ArrayCollection();
|
||||
}
|
||||
|
||||
public function getIdEtat(): ?Uuid
|
||||
public function getIdEtat(): ?string // Changement ici
|
||||
{
|
||||
return $this->idEtat;
|
||||
}
|
||||
|
||||
@@ -6,16 +6,15 @@ use App\Repository\LieuRepository;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
#[ORM\Entity(repositoryClass: LieuRepository::class)]
|
||||
class Lieu
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: 'uuid', unique: true)]
|
||||
#[ORM\Column(type: 'guid', unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $idLieu = null;
|
||||
private ?string $idLieu = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $nom = null;
|
||||
@@ -41,11 +40,10 @@ class Lieu
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->idLieu = Uuid::v4(); // Génération automatique d'un UUID
|
||||
$this->sorties = new ArrayCollection();
|
||||
}
|
||||
|
||||
public function getIdLieu(): ?Uuid
|
||||
public function getIdLieu(): ?string
|
||||
{
|
||||
return $this->idLieu;
|
||||
}
|
||||
|
||||
@@ -15,21 +15,21 @@ use Symfony\Component\Uid\Uuid;
|
||||
class Participant implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: 'uuid', unique: true)]
|
||||
#[ORM\Column(type: 'guid', unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $idParticipant = null;
|
||||
private ?string $idParticipant = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $nom = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $prénom = null;
|
||||
private ?string $prenom = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $telephone = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
#[ORM\Column(length: 255, nullable: false)]
|
||||
private ?string $email = null;
|
||||
|
||||
#[ORM\Column]
|
||||
@@ -56,11 +56,10 @@ class Participant implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->idParticipant = Uuid::v4(); // Génération automatique de l'UUID
|
||||
$this->sorties = new ArrayCollection();
|
||||
}
|
||||
|
||||
public function getIdParticipant(): ?Uuid
|
||||
public function getIdParticipant(): ?string
|
||||
{
|
||||
return $this->idParticipant;
|
||||
}
|
||||
@@ -77,14 +76,14 @@ class Participant implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPrénom(): ?string
|
||||
public function getPrenom(): ?string
|
||||
{
|
||||
return $this->prénom;
|
||||
return $this->prenom;
|
||||
}
|
||||
|
||||
public function setPrénom(string $prénom): self
|
||||
public function setPrenom(string $prenom): self
|
||||
{
|
||||
$this->prénom = $prénom;
|
||||
$this->prenom = $prenom;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -6,16 +6,15 @@ use App\Repository\SiteRepository;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
#[ORM\Entity(repositoryClass: SiteRepository::class)]
|
||||
class Site
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: 'uuid', unique: true)]
|
||||
#[ORM\Column(type: 'guid', unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $idSite = null;
|
||||
private ?string $idSite = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $nom = null;
|
||||
@@ -34,12 +33,11 @@ class Site
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->idSite = Uuid::v4(); // Génération automatique de l'UUID
|
||||
$this->sorties = new ArrayCollection();
|
||||
$this->participants = new ArrayCollection();
|
||||
}
|
||||
|
||||
public function getIdSite(): ?Uuid
|
||||
public function getIdSite(): ?string
|
||||
{
|
||||
return $this->idSite;
|
||||
}
|
||||
|
||||
@@ -5,16 +5,15 @@ namespace App\Entity;
|
||||
use App\Repository\SortieRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
#[ORM\Entity(repositoryClass: SortieRepository::class)]
|
||||
class Sortie
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: 'uuid', unique: true)]
|
||||
#[ORM\Column(type: 'guid', unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $idSortie = null;
|
||||
private ?string $idSortie = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $nom = null;
|
||||
@@ -23,7 +22,7 @@ class Sortie
|
||||
private ?\DateTimeInterface $dateHeureDebut = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $durée = null;
|
||||
private ?int $duree = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
|
||||
private ?\DateTimeInterface $dateLimiteInscription = null;
|
||||
@@ -50,12 +49,7 @@ class Sortie
|
||||
#[ORM\JoinColumn(name: 'etat_id', referencedColumnName: 'idEtat', nullable: false)]
|
||||
private ?Etat $etat = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->idSortie = Uuid::v4(); // Génération automatique d'un UUID
|
||||
}
|
||||
|
||||
public function getIdSortie(): ?Uuid
|
||||
public function getIdSortie(): ?string
|
||||
{
|
||||
return $this->idSortie;
|
||||
}
|
||||
@@ -84,14 +78,14 @@ class Sortie
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDurée(): ?int
|
||||
public function getDuree(): ?int
|
||||
{
|
||||
return $this->durée;
|
||||
return $this->duree;
|
||||
}
|
||||
|
||||
public function setDurée(?int $durée): self
|
||||
public function setDuree(?int $duree): self
|
||||
{
|
||||
$this->durée = $durée;
|
||||
$this->duree = $duree;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -6,16 +6,15 @@ use App\Repository\VilleRepository;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
#[ORM\Entity(repositoryClass: VilleRepository::class)]
|
||||
class Ville
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: 'uuid', unique: true)]
|
||||
#[ORM\Column(type: 'guid', unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $idVille = null;
|
||||
private ?string $idVille = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $nom = null;
|
||||
@@ -31,11 +30,10 @@ class Ville
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->idVille = Uuid::v4(); // Génération automatique d'un UUID
|
||||
$this->lieux = new ArrayCollection();
|
||||
}
|
||||
|
||||
public function getIdVille(): ?Uuid
|
||||
public function getIdVille(): ?string
|
||||
{
|
||||
return $this->idVille;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user