Comment.php 754 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Sluggable\Fixture;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. */
  7. class Comment
  8. {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(type="text")
  17. */
  18. private $message;
  19. /**
  20. * @ORM\ManyToOne(targetEntity="TranslatableArticle", inversedBy="comments")
  21. */
  22. private $article;
  23. public function setArticle(TranslatableArticle $article)
  24. {
  25. $this->article = $article;
  26. }
  27. public function getId()
  28. {
  29. return $this->id;
  30. }
  31. public function setMessage($message)
  32. {
  33. $this->message = $message;
  34. }
  35. public function getMessage()
  36. {
  37. return $this->message;
  38. }
  39. }