Modification Table : tabl -> table
This commit is contained in:
parent
f141abf1cc
commit
975bc1e153
@ -12,10 +12,6 @@ class LoginController extends AbstractController
|
|||||||
#[Route('/login', name: 'app_login')]
|
#[Route('/login', name: 'app_login')]
|
||||||
public function index(AuthenticationUtils $authenticationUtils): Response
|
public function index(AuthenticationUtils $authenticationUtils): Response
|
||||||
{
|
{
|
||||||
if ($this->getUser()) {
|
|
||||||
return $this->redirectToRoute('index/index.html.twig');
|
|
||||||
}
|
|
||||||
|
|
||||||
// get the login error if there is one
|
// get the login error if there is one
|
||||||
$error = $authenticationUtils->getLastAuthenticationError();
|
$error = $authenticationUtils->getLastAuthenticationError();
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ class Clients
|
|||||||
/**
|
/**
|
||||||
* @var Collection<int, Tables>
|
* @var Collection<int, Tables>
|
||||||
*/
|
*/
|
||||||
#[ORM\ManyToMany(targetEntity: Tables::class, inversedBy: 'Tabl')]
|
#[ORM\ManyToMany(targetEntity: Tables::class, inversedBy: 'Client')]
|
||||||
private Collection $Tabl;
|
private Collection $table;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection<int, Commandes>
|
* @var Collection<int, Commandes>
|
||||||
@ -41,7 +41,7 @@ class Clients
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->Tabl = new ArrayCollection();
|
$this->table = new ArrayCollection();
|
||||||
$this->commandes = new ArrayCollection();
|
$this->commandes = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,23 +101,23 @@ class Clients
|
|||||||
/**
|
/**
|
||||||
* @return Collection<int, Tables>
|
* @return Collection<int, Tables>
|
||||||
*/
|
*/
|
||||||
public function getTabl(): Collection
|
public function getTable(): Collection
|
||||||
{
|
{
|
||||||
return $this->Tabl;
|
return $this->table;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addTabl(Tables $tabl): static
|
public function addTable(Tables $table): static
|
||||||
{
|
{
|
||||||
if (!$this->Tabl->contains($tabl)) {
|
if (!$this->table->contains($table)) {
|
||||||
$this->Tabl->add($tabl);
|
$this->table->add($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeTabl(Tables $tabl): static
|
public function removeTable(Tables $table): static
|
||||||
{
|
{
|
||||||
$this->Tabl->removeElement($tabl);
|
$this->table->removeElement($table);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ class Reservations
|
|||||||
private ?int $Nb_de_prsn = null;
|
private ?int $Nb_de_prsn = null;
|
||||||
|
|
||||||
#[ORM\ManyToOne(inversedBy: 'reservations')]
|
#[ORM\ManyToOne(inversedBy: 'reservations')]
|
||||||
private ?Tables $Tabl = null;
|
private ?Tables $Table = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection<int, Utilisateurs>
|
* @var Collection<int, Utilisateurs>
|
||||||
@ -65,14 +65,14 @@ class Reservations
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTabl(): ?Tables
|
public function getTable(): ?Tables
|
||||||
{
|
{
|
||||||
return $this->Tabl;
|
return $this->Table;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setTabl(?Tables $Tabl): static
|
public function setTable(?Tables $Table): static
|
||||||
{
|
{
|
||||||
$this->Tabl = $Tabl;
|
$this->Table = $Table;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ class StatutTables
|
|||||||
private ?string $Libellé = null;
|
private ?string $Libellé = null;
|
||||||
|
|
||||||
#[ORM\ManyToOne(inversedBy: 'statutTables')]
|
#[ORM\ManyToOne(inversedBy: 'statutTables')]
|
||||||
private ?Tables $Tabl = null;
|
private ?Tables $Table = null;
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
@ -36,14 +36,14 @@ class StatutTables
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTabl(): ?Tables
|
public function getTable(): ?Tables
|
||||||
{
|
{
|
||||||
return $this->Tabl;
|
return $this->Table;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setTabl(?Tables $Tabl): static
|
public function setTable(?Tables $Table): static
|
||||||
{
|
{
|
||||||
$this->Tabl = $Tabl;
|
$this->Table = $Table;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -18,25 +18,25 @@ class Tables
|
|||||||
/**
|
/**
|
||||||
* @var Collection<int, Clients>
|
* @var Collection<int, Clients>
|
||||||
*/
|
*/
|
||||||
#[ORM\ManyToMany(targetEntity: Clients::class, mappedBy: 'Tabl')]
|
#[ORM\ManyToMany(targetEntity: Clients::class, mappedBy: 'table')]
|
||||||
private Collection $Clients;
|
private Collection $Clients;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection<int, Reservations>
|
* @var Collection<int, Reservations>
|
||||||
*/
|
*/
|
||||||
#[ORM\OneToMany(targetEntity: Reservations::class, mappedBy: 'Tabl')]
|
#[ORM\OneToMany(targetEntity: Reservations::class, mappedBy: 'Table')]
|
||||||
private Collection $reservations;
|
private Collection $reservations;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection<int, StatutTables>
|
* @var Collection<int, StatutTables>
|
||||||
*/
|
*/
|
||||||
#[ORM\OneToMany(targetEntity: StatutTables::class, mappedBy: 'Tabl')]
|
#[ORM\OneToMany(targetEntity: StatutTables::class, mappedBy: 'Table')]
|
||||||
private Collection $statutTables;
|
private Collection $statutTables;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection<int, Utilisateurs>
|
* @var Collection<int, Utilisateurs>
|
||||||
*/
|
*/
|
||||||
#[ORM\ManyToMany(targetEntity: Utilisateurs::class, mappedBy: 'tabl')]
|
#[ORM\ManyToMany(targetEntity: Utilisateurs::class, mappedBy: 'table')]
|
||||||
private Collection $utilisateurs;
|
private Collection $utilisateurs;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -60,20 +60,20 @@ class Tables
|
|||||||
return $this->Clients;
|
return $this->Clients;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addClient(Clients $tabl): static
|
public function addClient(Clients $table): static
|
||||||
{
|
{
|
||||||
if (!$this->Clients->contains($tabl)) {
|
if (!$this->Clients->contains($table)) {
|
||||||
$this->Clients->add($tabl);
|
$this->Clients->add($table);
|
||||||
$tabl->addTabl($this);
|
$table->addTable($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeClient(Clients $tabl): static
|
public function removeClient(Clients $table): static
|
||||||
{
|
{
|
||||||
if ($this->Clients->removeElement($tabl)) {
|
if ($this->Clients->removeElement($table)) {
|
||||||
$tabl->removeTabl($this);
|
$table->removeTable($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -91,7 +91,7 @@ class Tables
|
|||||||
{
|
{
|
||||||
if (!$this->reservations->contains($reservation)) {
|
if (!$this->reservations->contains($reservation)) {
|
||||||
$this->reservations->add($reservation);
|
$this->reservations->add($reservation);
|
||||||
$reservation->setTabl($this);
|
$reservation->setTable($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -101,8 +101,8 @@ class Tables
|
|||||||
{
|
{
|
||||||
if ($this->reservations->removeElement($reservation)) {
|
if ($this->reservations->removeElement($reservation)) {
|
||||||
// set the owning side to null (unless already changed)
|
// set the owning side to null (unless already changed)
|
||||||
if ($reservation->getTabl() === $this) {
|
if ($reservation->getTable() === $this) {
|
||||||
$reservation->setTabl(null);
|
$reservation->setTable(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ class Tables
|
|||||||
{
|
{
|
||||||
if (!$this->statutTables->contains($statutTable)) {
|
if (!$this->statutTables->contains($statutTable)) {
|
||||||
$this->statutTables->add($statutTable);
|
$this->statutTables->add($statutTable);
|
||||||
$statutTable->setTabl($this);
|
$statutTable->setTable($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -131,8 +131,8 @@ class Tables
|
|||||||
{
|
{
|
||||||
if ($this->statutTables->removeElement($statutTable)) {
|
if ($this->statutTables->removeElement($statutTable)) {
|
||||||
// set the owning side to null (unless already changed)
|
// set the owning side to null (unless already changed)
|
||||||
if ($statutTable->getTabl() === $this) {
|
if ($statutTable->getTable() === $this) {
|
||||||
$statutTable->setTabl(null);
|
$statutTable->setTable(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ class Tables
|
|||||||
{
|
{
|
||||||
if (!$this->utilisateurs->contains($utilisateur)) {
|
if (!$this->utilisateurs->contains($utilisateur)) {
|
||||||
$this->utilisateurs->add($utilisateur);
|
$this->utilisateurs->add($utilisateur);
|
||||||
$utilisateur->addTabl($this);
|
$utilisateur->addTable($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -160,7 +160,7 @@ class Tables
|
|||||||
public function removeUtilisateur(Utilisateurs $utilisateur): static
|
public function removeUtilisateur(Utilisateurs $utilisateur): static
|
||||||
{
|
{
|
||||||
if ($this->utilisateurs->removeElement($utilisateur)) {
|
if ($this->utilisateurs->removeElement($utilisateur)) {
|
||||||
$utilisateur->removeTabl($this);
|
$utilisateur->removeTable($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -42,12 +42,12 @@ class Utilisateurs implements UserInterface, PasswordAuthenticatedUserInterface
|
|||||||
* @var Collection<int, Tables>
|
* @var Collection<int, Tables>
|
||||||
*/
|
*/
|
||||||
#[ORM\ManyToMany(targetEntity: Tables::class, inversedBy: 'utilisateurs')]
|
#[ORM\ManyToMany(targetEntity: Tables::class, inversedBy: 'utilisateurs')]
|
||||||
private Collection $tabl;
|
private Collection $table;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->Reservation = new ArrayCollection();
|
$this->Reservation = new ArrayCollection();
|
||||||
$this->tabl = new ArrayCollection();
|
$this->table = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
@ -147,23 +147,23 @@ class Utilisateurs implements UserInterface, PasswordAuthenticatedUserInterface
|
|||||||
/**
|
/**
|
||||||
* @return Collection<int, Tables>
|
* @return Collection<int, Tables>
|
||||||
*/
|
*/
|
||||||
public function getTabl(): Collection
|
public function getTable(): Collection
|
||||||
{
|
{
|
||||||
return $this->tabl;
|
return $this->table;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addTabl(Tables $tabl): static
|
public function addTable(Tables $table): static
|
||||||
{
|
{
|
||||||
if (!$this->tabl->contains($tabl)) {
|
if (!$this->table->contains($table)) {
|
||||||
$this->tabl->add($tabl);
|
$this->table->add($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeTabl(Tables $tabl): static
|
public function removeTable(Tables $table): static
|
||||||
{
|
{
|
||||||
$this->tabl->removeElement($tabl);
|
$this->table->removeElement($table);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user