3 namespace Doctrine\Tests\Models\DDC117;
8 class DDC117Translation
12 * @ManyToOne(targetEntity="DDC117Article", inversedBy="translations")
13 * @JoinColumn(name="article_id", referencedColumnName="article_id")
18 * @Id @column(type="string")
23 * @column(type="string")
28 * @ManyToMany(targetEntity="DDC117Editor", mappedBy="reviewingTranslations")
30 public $reviewedByEditors;
33 * @OneToMany(targetEntity="DDC117Editor", mappedBy="lastTranslation")
35 public $lastTranslatedBy;
37 public function __construct($article, $language, $title)
39 $this->article = $article;
40 $this->language = $language;
41 $this->title = $title;
42 $this->reviewedByEditors = new \Doctrine\Common\Collections\ArrayCollection();
43 $this->lastTranslatedBy = new \Doctrine\Common\Collections\ArrayCollection();
46 public function getArticleId()
48 return $this->article->id();
51 public function getLanguage()
53 return $this->language;
56 public function getLastTranslatedBy()
58 return $this->lastTranslatedBy;
61 public function getReviewedByEditors()
63 return $this->reviewedByEditors;