Skip to content

Commit aa6ceb2

Browse files
committed
Removed Process entity
1 parent d53f34b commit aa6ceb2

File tree

5 files changed

+0
-178
lines changed

5 files changed

+0
-178
lines changed

src/Entity/Process.php

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

src/Entity/ProcessOverview.php

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

55
use App\Repository\ProcessOverviewRepository;
6-
use Doctrine\Common\Collections\ArrayCollection;
7-
use Doctrine\Common\Collections\Collection;
86
use Doctrine\DBAL\Types\Types;
97
use Doctrine\ORM\Event\PreUpdateEventArgs;
108
use Doctrine\ORM\Mapping as ORM;
@@ -31,12 +29,6 @@ class ProcessOverview
3129
#[ORM\JoinColumn(nullable: false)]
3230
private ?ProcessOverviewGroup $group = null;
3331

34-
/**
35-
* @var Collection<int, Process>
36-
*/
37-
#[ORM\OneToMany(targetEntity: Process::class, mappedBy: 'process', orphanRemoval: true)]
38-
private Collection $steps;
39-
4032
#[ORM\Column(type: Types::TEXT, nullable: true)]
4133
private ?string $options = null;
4234

@@ -47,11 +39,6 @@ class ProcessOverview
4739
#[ORM\Column(length: 255, nullable: true)]
4840
private ?string $processId = null;
4941

50-
public function __construct()
51-
{
52-
$this->steps = new ArrayCollection();
53-
}
54-
5542
public function getId(): ?int
5643
{
5744
return $this->id;
@@ -81,36 +68,6 @@ public function setGroup(?ProcessOverviewGroup $group): static
8168
return $this;
8269
}
8370

84-
/**
85-
* @return Collection<int, Process>
86-
*/
87-
public function getSteps(): Collection
88-
{
89-
return $this->steps;
90-
}
91-
92-
public function addStep(Process $step): static
93-
{
94-
if (!$this->steps->contains($step)) {
95-
$this->steps->add($step);
96-
$step->setProcess($this);
97-
}
98-
99-
return $this;
100-
}
101-
102-
public function removeStep(Process $step): static
103-
{
104-
if ($this->steps->removeElement($step)) {
105-
// set the owning side to null (unless already changed)
106-
if ($step->getProcess() === $this) {
107-
$step->setProcess(null);
108-
}
109-
}
110-
111-
return $this;
112-
}
113-
11471
public function getOptions(): ?string
11572
{
11673
return $this->options;

src/Repository/ProcessOverviewGroupRepository.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,4 @@ public function __construct(ManagerRegistry $registry)
1515
{
1616
parent::__construct($registry, ProcessOverviewGroup::class);
1717
}
18-
19-
// /**
20-
// * @return Group[] Returns an array of Group objects
21-
// */
22-
// public function findByExampleField($value): array
23-
// {
24-
// return $this->createQueryBuilder('g')
25-
// ->andWhere('g.exampleField = :val')
26-
// ->setParameter('val', $value)
27-
// ->orderBy('g.id', 'ASC')
28-
// ->setMaxResults(10)
29-
// ->getQuery()
30-
// ->getResult()
31-
// ;
32-
// }
33-
34-
// public function findOneBySomeField($value): ?Group
35-
// {
36-
// return $this->createQueryBuilder('g')
37-
// ->andWhere('g.exampleField = :val')
38-
// ->setParameter('val', $value)
39-
// ->getQuery()
40-
// ->getOneOrNullResult()
41-
// ;
42-
// }
4318
}

src/Repository/ProcessOverviewRepository.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,4 @@ public function __construct(ManagerRegistry $registry)
1515
{
1616
parent::__construct($registry, ProcessOverview::class);
1717
}
18-
19-
// /**
20-
// * @return Process[] Returns an array of Process objects
21-
// */
22-
// public function findByExampleField($value): array
23-
// {
24-
// return $this->createQueryBuilder('p')
25-
// ->andWhere('p.exampleField = :val')
26-
// ->setParameter('val', $value)
27-
// ->orderBy('p.id', 'ASC')
28-
// ->setMaxResults(10)
29-
// ->getQuery()
30-
// ->getResult()
31-
// ;
32-
// }
33-
34-
// public function findOneBySomeField($value): ?Process
35-
// {
36-
// return $this->createQueryBuilder('p')
37-
// ->andWhere('p.exampleField = :val')
38-
// ->setParameter('val', $value)
39-
// ->getQuery()
40-
// ->getOneOrNullResult()
41-
// ;
42-
// }
4318
}

src/Repository/ProcessRepository.php

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

0 commit comments

Comments
 (0)