mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 22:34:24 +00:00
asideActivities property removed + corresponding methods
This commit is contained in:
parent
ff58816ee0
commit
4cd2dc63c5
@ -28,16 +28,6 @@ class AsideActivityCategory
|
|||||||
*/
|
*/
|
||||||
private $isActive;
|
private $isActive;
|
||||||
|
|
||||||
/**
|
|
||||||
* @ORM\OneToMany(targetEntity=AsideActivity::class, mappedBy="type")
|
|
||||||
*/
|
|
||||||
private $asideActivities;
|
|
||||||
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->asideActivities = new ArrayCollection();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
@ -66,34 +56,4 @@ class AsideActivityCategory
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Collection|AsideActivity[]
|
|
||||||
*/
|
|
||||||
public function getAsideActivities(): Collection
|
|
||||||
{
|
|
||||||
return $this->asideActivities;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addAsideActivity(AsideActivity $asideActivity): self
|
|
||||||
{
|
|
||||||
if (!$this->asideActivities->contains($asideActivity)) {
|
|
||||||
$this->asideActivities[] = $asideActivity;
|
|
||||||
$asideActivity->setType($this);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function removeAsideActivity(AsideActivity $asideActivity): self
|
|
||||||
{
|
|
||||||
if ($this->asideActivities->removeElement($asideActivity)) {
|
|
||||||
// set the owning side to null (unless already changed)
|
|
||||||
if ($asideActivity->getType() === $this) {
|
|
||||||
$asideActivity->setType(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user