<?php namespace AppEntity; use AppRepositoryGameRepository; use DoctrineDBALTypesTypes; use DoctrineORMMapping as ORM; #[ORMEntity(repositoryClass: GameRepository::class)] class Game { #[ORMId] #[ORMGeneratedValue] #[ORMColumn] private ?int $id = null; #[ORMColumn(type: Types::DATETIME_MUTABLE)] private ?DateTimeInterface $datetime_start = null; #[ORMColumn(type: Types::DATETIME_MUTABLE)] private ?DateTimeInterface $datetime_stop = null; #[ORMColumn(length: 255, nullable: true)] private ?string $status = null; #[ORMManyToOne(inversedBy: 'games')] private ?User $updatedby_id = null; #[ORMOneToOne(cascade: ['persist', 'remove'])] private ?GameType $game_type = null; public function getId(): ?int { return $this->id; } public function getDatetimeStart(): ?DateTimeInterface { return $this->datetime_start; } public function setDatetimeStart(DateTimeInterface $datetime_start): static { $this->datetime_start = $datetime_start; return $this; } public function getDatetimeStop(): ?DateTimeInterface { return $this->datetime_stop; } public function setDatetimeStop(DateTimeInterface $datetime_stop): static { $this->datetime_stop = $datetime_stop; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus(?string $status): static { $this->status = $status; return $this; } public function getUpdatedbyId(): ?User { return $this->updatedby_id; } public function setUpdatedbyId(?User $updatedby_id): static { $this->updatedby_id = $updatedby_id; return $this; } public function getGameType(): ?GameType { return $this->game_type; } public function setGameType(?GameType $game_type): static { $this->game_type = $game_type; return $this; } }