]>
Commit | Line | Data |
---|---|---|
6c87418f NL |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Entity; | |
4 | ||
5 | use Doctrine\ORM\Mapping as ORM; | |
6 | ||
7 | /** | |
8 | * TagsEntries | |
9 | * | |
10 | * @ORM\Table(name="tags_entries") | |
11 | */ | |
12 | class TagsEntries | |
13 | { | |
14 | /** | |
15 | * @var integer | |
16 | * | |
17 | * @ORM\Column(name="id", type="integer") | |
18 | * @ORM\Id | |
19 | * @ORM\GeneratedValue(strategy="AUTO") | |
20 | */ | |
21 | private $id; | |
22 | ||
23 | /** | |
24 | * | |
25 | * @ORM\ManyToOne(targetEntity="Entry", inversedBy="tags_entries") | |
26 | * @ORM\JoinColumn(name="entry_id", referencedColumnName="id") | |
27 | * | |
28 | */ | |
29 | private $entryId; | |
30 | ||
31 | /** | |
32 | * | |
33 | * @ORM\ManyToOne(targetEntity="Tag", inversedBy="tags_entries") | |
34 | * @ORM\JoinColumn(name="tag_id", referencedColumnName="id") | |
35 | * | |
36 | */ | |
37 | private $tagId; | |
38 | ||
39 | /** | |
40 | * Get id | |
41 | * | |
42 | * @return integer | |
43 | */ | |
44 | public function getId() | |
45 | { | |
46 | return $this->id; | |
47 | } | |
48 | ||
49 | /** | |
50 | * @return mixed | |
51 | */ | |
52 | public function getEntryId() | |
53 | { | |
54 | return $this->entryId; | |
55 | } | |
56 | ||
57 | /** | |
58 | * @param mixed $entryId | |
59 | */ | |
60 | public function setEntryId($entryId) | |
61 | { | |
62 | $this->entryId = $entryId; | |
63 | } | |
64 | ||
65 | /** | |
66 | * @return mixed | |
67 | */ | |
68 | public function getTagId() | |
69 | { | |
70 | return $this->tagId; | |
71 | } | |
72 | ||
73 | /** | |
74 | * @param mixed $tagId | |
75 | */ | |
76 | public function setTagId($tagId) | |
77 | { | |
78 | $this->tagId = $tagId; | |
79 | } | |
80 | ||
81 | } |