src/Admin/Modules/OfferGenerator/Entity/OfferGeneratorPriceList.php line 14
<?phpnamespace App\Admin\Modules\OfferGenerator\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="offer_generator_price_list")* @ORM\Entity*/class OfferGeneratorPriceList{const VIEW_TYPE_TABLE = 1;const VIEW_TYPE_LIST = 2;/*** @ORM\Column(type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @ORM\Column(name="view_type", type="smallint", nullable=false)*/private $viewType;/*** @ORM\OneToMany(targetEntity="App\Admin\Modules\OfferGenerator\Entity\OfferGeneratorPriceListGroup", 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;}public function getViewType(): ?int{return $this->viewType;}public function setViewType(int $viewType): self{$this->viewType = $viewType;return $this;}/*** @return Collection<int, OfferGeneratorPriceListGroup>*/public function getGroups(): Collection{return $this->groups;}public function addGroup(OfferGeneratorPriceListGroup $group): self{if (!$this->groups->contains($group)) {$this->groups->add($group);$group->setPriceList($this);}return $this;}public function removeGroup(OfferGeneratorPriceListGroup $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;}}