SimpleArticle.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Translatable\Fixture\Issue165;
  3. use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoODM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * @MongoODM\Document(collection="articles")
  7. */
  8. class SimpleArticle
  9. {
  10. /** @MongoODM\Id */
  11. private $id;
  12. /**
  13. * @Gedmo\Translatable
  14. * @MongoODM\String
  15. */
  16. private $title;
  17. /**
  18. * @Gedmo\Translatable
  19. * @MongoODM\String
  20. */
  21. private $content;
  22. /**
  23. * @MongoODM\String
  24. */
  25. private $untranslated;
  26. public function getId()
  27. {
  28. return $this->id;
  29. }
  30. public function setTitle($title)
  31. {
  32. $this->title = $title;
  33. }
  34. public function getTitle()
  35. {
  36. return $this->title;
  37. }
  38. public function setContent($content)
  39. {
  40. $this->content = $content;
  41. }
  42. public function getContent()
  43. {
  44. return $this->content;
  45. }
  46. public function setUntranslated($untranslated)
  47. {
  48. $this->untranslated = $untranslated;
  49. }
  50. public function getUntranslated()
  51. {
  52. return $this->untranslated;
  53. }
  54. }