<?phpnamespace Notaris\AdminBundle\Entity;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass="NewsParagraphRepository") * @ORM\Table(name="news_paragraphs") */class NewsParagraph { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\News", inversedBy="paragraphs") * @ORM\JoinColumn(name="news_id", referencedColumnName="id", onDelete="CASCADE") */ private $news; /** * @var integer * * @ORM\Column(type="integer") */ private $number; /** * @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") */ private $asset; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set news * * @param \Notaris\AdminBundle\Entity\News $news * * @return NewsMailing */ public function setNews(\Notaris\AdminBundle\Entity\News $news = null) { $this->news = $news; return $this; } /** * Get news * * @return \Notaris\AdminBundle\Entity\News */ public function getNews() { return $this->news; } /** * Set number * * @param integer $number * @return NewsParagraph */ public function setNumber($number) { $this->number = $number; return $this; } /** * Get number * * @return integer */ public function getNumber() { return $this->number; } /** * Set subtitle * * @param string $subtitle * @return News */ 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 News */ 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 News */ 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; }}