Start on property keeping track of git db content

This commit is contained in:
Tim
2023-12-16 01:26:47 +01:00
parent a9e740d018
commit 0fce8ee4fe
7 changed files with 219 additions and 27 deletions

View File

@ -27,6 +27,9 @@ class Snip
#[ORM\OneToMany(mappedBy: 'snip', targetEntity: SnipContent::class, orphanRemoval: true)]
private Collection $snipContents;
#[ORM\Column(length: 255, nullable: true)]
private ?string $activeCommit = null;
public function __construct()
{
$this->snipContents = new ArrayCollection();
@ -95,4 +98,16 @@ class Snip
return $this;
}
public function getActiveCommit(): ?string
{
return $this->activeCommit;
}
public function setActiveCommit(?string $activeCommit): static
{
$this->activeCommit = $activeCommit;
return $this;
}
}