mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-10-09 17:02:47 +02:00
set active festival button
This commit is contained in:
parent
19cdb12d28
commit
9885d6f937
5 changed files with 185 additions and 79 deletions
|
@ -4,6 +4,7 @@ namespace App\Entity;
|
|||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
|
@ -49,11 +50,15 @@ class Selling
|
|||
#[ORM\ManyToOne(inversedBy: 'sellings')]
|
||||
private ?User $owner = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATE_MUTABLE)]
|
||||
private ?\DateTimeInterface $date = null;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->groupOfProducts = new ArrayCollection();
|
||||
$this->products = new ArrayCollection();
|
||||
$this->setDate(new \DateTime());
|
||||
}
|
||||
|
||||
public function getId(): ?int
|
||||
|
@ -200,5 +205,17 @@ class Selling
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getDate(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
public function setDate(\DateTimeInterface $date): static
|
||||
{
|
||||
$this->date = $date;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* les séries de festival réunissent des évènements similaires dans le temps
|
||||
* typiquement plusieurs éditions d'un ensemble
|
||||
* cela permet d'avoir des informations statistiques groupées
|
||||
*/
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\SerieFestivalRepository;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue