diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-22 21:25:24 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-06 20:50:30 +0100 |
commit | 6c87418ff013cfd03093c3f01e20518e580d80bb (patch) | |
tree | 1d8900eac2a643122151ce4a3123d3c69233f818 /src/Wallabag/CoreBundle/Entity | |
parent | 1bd12b62296569764ac329d88e964059dec530be (diff) | |
download | wallabag-6c87418ff013cfd03093c3f01e20518e580d80bb.tar.gz wallabag-6c87418ff013cfd03093c3f01e20518e580d80bb.tar.zst wallabag-6c87418ff013cfd03093c3f01e20518e580d80bb.zip |
fixtures for tag
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/TagsEntries.php | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/TagsEntries.php b/src/Wallabag/CoreBundle/Entity/TagsEntries.php new file mode 100644 index 00000000..589f26f8 --- /dev/null +++ b/src/Wallabag/CoreBundle/Entity/TagsEntries.php | |||
@@ -0,0 +1,81 @@ | |||
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 | } | ||