|
@@ -4,6 +4,8 @@ namespace App\Entity;
|
|
|
|
|
|
use App\Repository\FilmRepository;
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
+use Doctrine\DBAL\Types\DateImmutableType;
|
|
|
+use Doctrine\DBAL\Types\Types;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
|
@@ -79,9 +81,8 @@ class Film
|
|
|
|
|
|
private ?string $information = null;
|
|
|
|
|
|
- #[ORM\Column(type: "date", nullable: true)]
|
|
|
-
|
|
|
- private ?\DateTimeInterface $dateSortie = null;
|
|
|
+ #[ORM\Column(type: Types::DATE_IMMUTABLE, nullable: true)]
|
|
|
+ private ?\DateTimeImmutable $dateSortie = null;
|
|
|
|
|
|
public function __construct()
|
|
|
{
|