src/Admin/Modules/OnlineService/Entity/OnlineServiceCreatorPriceList.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_price_list")* @ORM\Entity*/class OnlineServiceCreatorPriceList{/*** @ORM\Column(type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @ORM\OneToMany(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorPriceListGroup", mappedBy="priceList", cascade={"persist"}, orphanRemoval=true)* @ORM\OrderBy({"id"="ASC"})**/private $groups;public function __construct(){$this->groups = new ArrayCollection();}public function getId(): ?int{return $this->id;}/*** @return Collection<int, OnlineServiceCreatorPriceListGroup>*/public function getGroups(): Collection{return $this->groups;}public function addGroup(OnlineServiceCreatorPriceListGroup $group): self{if (!$this->groups->contains($group)) {$this->groups->add($group);$group->setPriceList($this);}return $this;}public function removeGroup(OnlineServiceCreatorPriceListGroup $group): self{if ($this->groups->removeElement($group)) {// set the owning side to null (unless already changed)if ($group->getPriceList() === $this) {$group->setPriceList(null);}}return $this;}}