id; } /** * @var string $title * @ORM\Column(type="string", length=100) */ protected $title; /** * Set title * * @param string $title * @return News */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * @var string $text * @ORM\Column(type="text", nullable=false) */ protected $text; /** * 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; } /** * @var DateTime $createdAt * @ORM\Column(type="datetime", name="created_at", nullable=false) */ protected $createdAt; /** * Set createdAt * * @param DateTime $createdAt * @return News */ public function setCreatedAt(\DateTime $createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * @var \KekRozsak\SecurityBundle\Entity\User $createdBy * @ORM\ManyToOne(targetEntity="\KekRozsak\SecurityBundle\Entity\User") * @ORM\JoinColumn(name="created_by_id") */ protected $createdBy; /** * Set createdBy * * @param \KekRozsak\SecurityBundle\Entity\User $createdBy * @return News */ public function setCreatedBy(\KekRozsak\SecurityBundle\Entity\User $createdBy) { $this->createdBy = $createdBy; return $this; } /** * Get createdBy * * @return \KekRozsak\SecurityBundle\Entity\User */ public function getCreatedBy() { return $this->createdBy; } }