Article.php 658 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Loggable\Fixture\Entity;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. * @Gedmo\Loggable
  8. */
  9. class Article
  10. {
  11. /**
  12. * @ORM\Column(name="id", type="integer")
  13. * @ORM\Id
  14. * @ORM\GeneratedValue(strategy="IDENTITY")
  15. */
  16. private $id;
  17. /**
  18. * @Gedmo\Versioned
  19. * @ORM\Column(name="title", type="string", length=8)
  20. */
  21. private $title;
  22. public function getId()
  23. {
  24. return $this->id;
  25. }
  26. public function setTitle($title)
  27. {
  28. $this->title = $title;
  29. }
  30. public function getTitle()
  31. {
  32. return $this->title;
  33. }
  34. }