src/Admin/Modules/OnlineService/Entity/OnlineServiceCreatorPriceListGroup.php line 13
<?phpnamespace App\Admin\Modules\OnlineService\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Table(name="online_service_creator_price_list_group")* @ORM\Entity*/class OnlineServiceCreatorPriceListGroup{/*** @ORM\Column(type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @ORM\ManyToOne(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorPriceList", inversedBy="groups")* @ORM\JoinColumns({* @ORM\JoinColumn(name="id_online_service_creator_price_list", referencedColumnName="id", nullable=false, onDelete="CASCADE")* })*/private $priceList;/*** @ORM\Column(name="name", type="string", length=255, nullable=false)*/private $name;/*** @ORM\OneToMany(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorPriceListGroupItem", mappedBy="group", cascade={"persist"}, orphanRemoval=true)* @ORM\OrderBy({"id"="ASC"})**/private $items;public function __construct(){$this->items = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getPriceList(): ?OnlineServiceCreatorPriceList{return $this->priceList;}public function setPriceList(?OnlineServiceCreatorPriceList $priceList): self{$this->priceList = $priceList;return $this;}/*** @return Collection<int, OnlineServiceCreatorPriceListGroupItem>*/public function getItems(): Collection{return $this->items;}public function addItem(OnlineServiceCreatorPriceListGroupItem $item): self{if (!$this->items->contains($item)) {$this->items->add($item);$item->setGroup($this);}return $this;}public function removeItem(OnlineServiceCreatorPriceListGroupItem $item): self{if ($this->items->removeElement($item)) {// set the owning side to null (unless already changed)if ($item->getGroup() === $this) {$item->setGroup(null);}}return $this;}}