OtherComment.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace SoftDeleteable\Fixture\Entity;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class OtherComment
  9. {
  10. /**
  11. * @ORM\Column(name="id", type="integer")
  12. * @ORM\Id
  13. * @ORM\GeneratedValue(strategy="IDENTITY")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(name="comment", type="string")
  18. */
  19. private $comment;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="OtherArticle", inversedBy="comments")
  22. */
  23. private $article;
  24. public function getId()
  25. {
  26. return $this->id;
  27. }
  28. public function setComment($comment)
  29. {
  30. $this->comment = $comment;
  31. }
  32. public function getComment()
  33. {
  34. return $this->comment;
  35. }
  36. public function setDeletedAt($deletedAt)
  37. {
  38. $this->deletedAt = $deletedAt;
  39. }
  40. public function getDeletedAt()
  41. {
  42. return $this->deletedAt;
  43. }
  44. public function setArticle(OtherArticle $article)
  45. {
  46. $this->article = $article;
  47. }
  48. public function getArticle()
  49. {
  50. return $this->article;
  51. }
  52. }