DDC117ApproveChanges.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace Doctrine\Tests\Models\DDC117;
  3. /**
  4. * @Entity
  5. */
  6. class DDC117ApproveChanges
  7. {
  8. /**
  9. * @Id @Column(type="integer") @GeneratedValue
  10. */
  11. private $id;
  12. /**
  13. * @ManyToOne(targetEntity="DDC117ArticleDetails")
  14. * @JoinColumn(name="details_id", referencedColumnName="article_id")
  15. */
  16. private $articleDetails;
  17. /**
  18. * @ManyToOne(targetEntity="DDC117Reference")
  19. * @JoinColumns({
  20. * @JoinColumn(name="source_id", referencedColumnName="source_id"),
  21. * @JoinColumn(name="target_id", referencedColumnName="target_id")
  22. * })
  23. */
  24. private $reference;
  25. /**
  26. * @ManyToOne(targetEntity="DDC117Translation")
  27. * @JoinColumns({
  28. * @JoinColumn(name="trans_article_id", referencedColumnName="article_id"),
  29. * @JoinColumn(name="trans_language", referencedColumnName="language")
  30. * })
  31. */
  32. private $translation;
  33. public function __construct($details, $reference, $translation)
  34. {
  35. $this->articleDetails = $details;
  36. $this->reference = $reference;
  37. $this->translation = $translation;
  38. }
  39. public function getId()
  40. {
  41. return $this->id;
  42. }
  43. public function getArticleDetails()
  44. {
  45. return $this->articleDetails;
  46. }
  47. public function getReference()
  48. {
  49. return $this->reference;
  50. }
  51. public function getTranslation()
  52. {
  53. return $this->translation;
  54. }
  55. }