|
@@ -13,34 +13,34 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
|
|
class Film
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
private ?int $id = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
private ?string $titre = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
private ?\DateTimeInterface $annee = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
private ?\DateTimeInterface $dateSubmited = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
private ?string $lien = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
private ?float $note = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
private ?int $nbComs = null;
|
|
|
|
|
@@ -79,7 +79,7 @@ class Film
|
|
|
|
|
|
private ?Collection $genres = null;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
private ?string $information = null;
|
|
|
|
|
@@ -96,7 +96,7 @@ class Film
|
|
|
$this->usersWhoSeen = new \Doctrine\Common\Collections\ArrayCollection();
|
|
|
$this->genres = new \Doctrine\Common\Collections\ArrayCollection();
|
|
|
$this->commentaires = new \Doctrine\Common\Collections\ArrayCollection();
|
|
|
- $this->setDateSubmited(new \DateTime());
|
|
|
+ $this->setDateSubmited(new \DateTimeImmutable());
|
|
|
$this->mediaVideos = new ArrayCollection();
|
|
|
}
|
|
|
|