<?phpnamespace Uniski\CMSBundle\Entity;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Entity* @ORM\Table("menu")*/class Menu{ /** * @var integer * * @ORM\Id * @ORM\Column(name="id", type="integer") * @ORM\GeneratedValue(strategy="IDENTITY") */ protected $id; /** * @var string * @ORM\Column(name="title", type="string") */ protected $title; /** * @var ArrayCollection * @ORM\OneToMany(targetEntity="Offer", mappedBy="menu") */ protected $offers; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set title * * @param string $title * * @return Post */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * Constructor */ public function __construct() { $this->offers = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add offer * * @param \Uniski\CMSBundle\Entity\Offer $offer * * @return Page */ public function addOffer(\Uniski\CMSBundle\Entity\Offer $offer) { $this->offers[] = $offer; return $this; } /** * Remove offer * * @param \Uniski\CMSBundle\Entity\Offer $offer */ public function removeOffer(\Uniski\CMSBundle\Entity\Offer $offer) { $this->offers->removeElement($offer); } /** * Get offers * * @return \Doctrine\Common\Collections\Collection */ public function getOffers() { return $this->offers; }}