<?php
namespace Notaris\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Eko\FeedBundle\Field\Item\GroupItemField;
use Eko\FeedBundle\Field\Item\ItemField;
use Eko\FeedBundle\Field\Item\MediaItemField;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="NewsIzimiInfoRepository")
* @ORM\Table(name="news_izimi_info")
*/
class NewsIzimiInfo
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\NewsIzimi", inversedBy="newsIzimiInfos")
* @ORM\JoinColumn(name="news_izimi_id", referencedColumnName="id", onDelete="CASCADE")
*/
private $newsIzimi;
/**
* @Gedmo\Slug(fields={"title"})
* @ORM\Column(length=128, unique=true)
*/
private $slug;
/**
* @var string
*
* @ORM\Column(name="locale", type="string", length=5)
*/
private $locale;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="subtitle", type="string", length=255)
*/
private $subtitle;
/**
* @ORM\Column(type="text", name="text")
*/
private $text;
/**
* @ORM\OneToOne(targetEntity="Asset")
* @ORM\JoinColumn(name="asset_id", referencedColumnName="id")
*/
protected $asset;
/**
* @ORM\OneToOne(targetEntity="Video", mappedBy="newsIzimiInfo", cascade={"persist"})
*/
private $video;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set newsIzimi
*
* @param \Notaris\AdminBundle\Entity\NewsIzimi $newsIzimi
* @return NewsIzimiInfo
*/
public function setNewsIzimi(\Notaris\AdminBundle\Entity\NewsIzimi $newsIzimi = null)
{
$this->newsIzimi = $newsIzimi;
return $this;
}
/**
* Get newsIzimi
*
* @return \Notaris\AdminBundle\Entity\NewsIzimi
*/
public function getNewsIzimi()
{
return $this->newsIzimi;
}
/**
* Set slug
*
* @param string $slug
* @return NewsIzimiInfo
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Set locale
*
* @param string $locale
* @return NewsIzimiInfo
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* Get locale
*
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Set title
*
* @param string $title
* @return NewsIzimiInfo
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set subtitle
*
* @param string $subtitle
* @return NewsIzimiInfo
*/
public function setSubtitle($subtitle)
{
$this->subtitle = $subtitle;
return $this;
}
/**
* Get subtitle
*
* @return string
*/
public function getSubtitle()
{
return $this->subtitle;
}
/**
* Set text
*
* @param string $text
* @return NewsIzimiInfo
*/
public function setText($text)
{
$this->text = $text;
return $this;
}
/**
* Get text
*
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Set asset
*
* @param \Notaris\AdminBundle\Entity\Asset $asset
* @return NewsIzimiInfo
*/
public function setAsset(\Notaris\AdminBundle\Entity\Asset $asset = null)
{
$this->asset = $asset;
return $this;
}
/**
* Get asset
*
* @return \Notaris\AdminBundle\Entity\Asset
*/
public function getAsset()
{
return $this->asset;
}
/**
* Set video
*
* @param \Notaris\AdminBundle\Entity\Video $video
* @return NewsIzimi
*/
public function setVideo(\Notaris\AdminBundle\Entity\Video $video = null)
{
$this->video = $video;
return $this;
}
/**
* Get video
*
* @return \Notaris\AdminBundle\Entity\Video
*/
public function getVideo()
{
return $this->video;
}
}