|
@@ -16,32 +16,25 @@ class Film
|
|
|
#[ORM\Column(name: "id", type: Types::INTEGER)]
|
|
|
#[ORM\Id]
|
|
|
#[ORM\GeneratedValue(strategy: "AUTO")]
|
|
|
-
|
|
|
private ?int $id = null;
|
|
|
|
|
|
#[ORM\Column(name: "titre", type: Types::STRING, length: 191)]
|
|
|
-
|
|
|
private ?string $titre = null;
|
|
|
|
|
|
#[ORM\Column(name: "annee", type: Types::DATE_IMMUTABLE, nullable: true)]
|
|
|
-
|
|
|
private ?\DateTimeInterface $annee = null;
|
|
|
|
|
|
#[ORM\Column(name: "date_submited", type: Types::DATETIME_IMMUTABLE, nullable: true)]
|
|
|
-
|
|
|
private ?\DateTimeInterface $dateSubmited = null;
|
|
|
|
|
|
#[ORM\Column(name: "lien", type: Types::STRING, length: 191, nullable: true)]
|
|
|
- #[Assert\Url()]
|
|
|
-
|
|
|
+ #[Assert\Url()]
|
|
|
private ?string $lien = null;
|
|
|
|
|
|
#[ORM\Column(name: "note", type: Types::FLOAT, nullable: true)]
|
|
|
-
|
|
|
private ?float $note = null;
|
|
|
|
|
|
#[ORM\Column(name: "nb_coms", type: Types::INTEGER, nullable: true)]
|
|
|
-
|
|
|
private ?int $nbComs = null;
|
|
|
|
|
|
/*
|
|
@@ -53,34 +46,27 @@ class Film
|
|
|
*/
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: Realisateur::class, inversedBy: "films", cascade: ["persist"])]
|
|
|
-
|
|
|
private ?Collection $realisateurs = null;
|
|
|
|
|
|
#[ORM\OneToMany(targetEntity: Commentaire::class, mappedBy: "film", orphanRemoval: true)]
|
|
|
-
|
|
|
private ?Collection $commentaires = null;
|
|
|
|
|
|
#[ORM\ManyToOne(targetEntity: User::class)]
|
|
|
#[ORM\JoinColumn(nullable: true)]
|
|
|
-
|
|
|
private ?User $authered = null;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: User::class, inversedBy: "films")]
|
|
|
#[ORM\JoinTable(name: "filmsavoir_users")]
|
|
|
-
|
|
|
private ?Collection $usersWantToView = null;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: User::class, inversedBy: "filmsVus")]
|
|
|
#[ORM\JoinTable(name: "filmsvus_users")]
|
|
|
-
|
|
|
private ?Collection $usersWhoSeen = null;
|
|
|
|
|
|
#[ORM\ManyToMany(targetEntity: Genre::class, cascade: ["persist"])]
|
|
|
-
|
|
|
private ?Collection $genres = null;
|
|
|
|
|
|
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
|
|
-
|
|
|
private ?string $information = null;
|
|
|
|
|
|
#[ORM\Column(type: Types::DATE_IMMUTABLE, nullable: true)]
|