Start on property keeping track of git db content
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user