src/Admin/Modules/OnlineService/Entity/OnlineServiceCreator.php line 14
<?phpnamespace App\Admin\Modules\OnlineService\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Table(name="online_service_creator")* @ORM\Entity*/class OnlineServiceCreator{/*** @ORM\Column(type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @ORM\OneToMany(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorCategory", mappedBy="creator", cascade={"persist"}, orphanRemoval=true)* @ORM\OrderBy({"id"="ASC"})**/private $categories;public function __construct(){$this->categories = new ArrayCollection();}public function getId(): ?int{return $this->id;}/*** @return Collection<int, OnlineServiceCreatorCategory>*/public function getCategories(): Collection{return $this->categories;}public function addCategory(OnlineServiceCreatorCategory $category): self{if (!$this->categories->contains($category)) {$this->categories->add($category);$category->setCreator($this);}return $this;}public function removeCategory(OnlineServiceCreatorCategory $category): self{if ($this->categories->removeElement($category)) {// set the owning side to null (unless already changed)if ($category->getCreator() === $this) {$category->setCreator(null);}}return $this;}}