<?php
//Note: This entity should not exist. The ad_pin table should just be a join table, but making it this way for now due to the way the mega menu is set up.
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Doctrine\Common\Collections\Criteria;
/**
* @ORM\Entity(repositoryClass="App\Repository\AdPinRepository")
*/
class AdPin
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="bigint")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\MediaGroupItem", inversedBy="pins", cascade={"persist"})
* @ORM\JoinColumn(name="media_group_item_id", referencedColumnName="id", onDelete="CASCADE")
*/
private $media_group_item;
/**
* @ORM\Column(type="string", length=150)
*/
private $mega_menu_uuid;
/**
* @ORM\Column(type="integer", length=11)
*/
private $site_id;
/**
* @ORM\Column(type="string", length=255)
*/
private $ad_type;
public function __construct ()
{
$this->site_id = 0;
$this->mega_menu_uuid = "";
$this->ad_type = "";
}
public function getMediaGroupItem(): ?MediaGroupItem
{
return $this->media_group_item;
}
public function setMediaGroupItem(?MediaGroupItem $item): self
{
$this->media_group_item = $item;
return $this;
}
public function getMegaMenuUuid(): string
{
return $this->mega_menu_uuid;
}
public function setMegaMenuUuid(string $mega_menu_uuid = null): self
{
$this->mega_menu_uuid = $mega_menu_uuid ? $mega_menu_uuid : "";
return $this;
}
public function getSiteId(): int
{
return $this->site_id;
}
public function setSiteId(int $site_id): self
{
$this->site_id = $site_id;
return $this;
}
public function getAdType(): string
{
return $this->ad_type;
}
public function setAdType(string $ad_type = null): self
{
$this->ad_type = $ad_type ? $ad_type : "";
return $this;
}
}