feat: treat all uploads of type 'document' as global

This commit is contained in:
Björn Fromme
2024-01-31 18:05:56 +01:00
parent 5ad7bfe769
commit 4be039e482
12 changed files with 15 additions and 130 deletions
-15
View File
@@ -63,9 +63,6 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
#[ORM\ManyToOne(inversedBy: 'documents')]
private ?Disposition $disposition = null;
#[ORM\Column]
private bool $global = false;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $comment = null;
@@ -222,18 +219,6 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
return $this;
}
public function isGlobal(): bool
{
return $this->global;
}
public function setGlobal(bool $global): static
{
$this->global = $global;
return $this;
}
public function getComment(): ?string
{
return $this->comment;