<?phpnamespace App\Entity;use App\Entity\Traits\TimestampableTrait;use App\Repository\SectionRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SectionRevisionRepository::class)]class SectionRevision{ use TimestampableTrait; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\ManyToOne(targetEntity: Section::class, inversedBy: 'sectionRevisions')] #[ORM\JoinColumn(onDelete: 'CASCADE')] private $section; #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'sectionRevisions')] #[ORM\JoinColumn(onDelete: 'SET NULL')] private $user; #[ORM\Column(type: 'string', length: 255)] private $name; #[ORM\Column(type: 'text')] private $text; /** * @return int|null */ public function getId(): ?int { return $this->id; } /** * @return string|null */ public function getName(): ?string { return $this->name; } /** * @param string $name * @return $this */ public function setName(string $name): self { $this->name = $name; return $this; } /** * @return string|null */ public function getText(): ?string { return $this->text; } /** * @param string $text * @return $this */ public function setText(string $text): self { $this->text = $text; return $this; } /** * @return Section|null */ public function getSection(): ?Section { return $this->section; } /** * @param Section|null $section * @return $this */ public function setSection(?Section $section): self { $this->section = $section; return $this; } /** * @return User|null */ public function getUser(): ?User { return $this->user; } /** * @param User|null $user * @return $this */ public function setUser(?User $user): self { $this->user = $user; return $this; }}