Comment.php 571 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Loggable\Fixture\Entity;
  3. /**
  4. * @Entity
  5. * @gedmo:Loggable(actions={"create", "update"})
  6. */
  7. class Comment
  8. {
  9. /**
  10. * @Column(name="id", type="integer")
  11. * @Id
  12. * @GeneratedValue(strategy="IDENTITY")
  13. */
  14. private $id;
  15. /**
  16. * @Column(name="title", type="string", length=8)
  17. */
  18. private $title;
  19. public function getId()
  20. {
  21. return $this->id;
  22. }
  23. public function setTitle($title)
  24. {
  25. $this->title = $title;
  26. }
  27. public function getTitle()
  28. {
  29. return $this->title;
  30. }
  31. }