Skip to content

Commit 1c028ce

Browse files
committed
Remove obsolete metadata fields from version tables
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent 018dcf5 commit 1c028ce

File tree

10 files changed

+470
-623
lines changed

10 files changed

+470
-623
lines changed

migrations/Version20260120114538.php

Lines changed: 380 additions & 0 deletions
Large diffs are not rendered by default.

src/Doctrine/Entity/AbstractVersionLink.php

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/Doctrine/Entity/Keyword.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace CodedMonkey\Dirigent\Doctrine\Entity;
44

55
use CodedMonkey\Dirigent\Doctrine\Repository\KeywordRepository;
6-
use Doctrine\Common\Collections\ArrayCollection;
7-
use Doctrine\Common\Collections\Collection;
86
use Doctrine\ORM\Mapping as ORM;
97

108
#[ORM\Entity(repositoryClass: KeywordRepository::class)]
@@ -19,13 +17,9 @@ class Keyword
1917
#[ORM\Column(length: 191)]
2018
private string $name;
2119

22-
#[ORM\ManyToMany(targetEntity: Version::class, mappedBy: 'keywords')]
23-
protected Collection $versions;
24-
2520
public function __construct(string $name)
2621
{
2722
$this->name = $name;
28-
$this->versions = new ArrayCollection();
2923
}
3024

3125
public function getId(): ?int

0 commit comments

Comments
 (0)