|
@@ -0,0 +1,102 @@
|
|
1
|
+<?php
|
|
2
|
+
|
|
3
|
+namespace Muzich\CoreBundle\Entity;
|
|
4
|
+
|
|
5
|
+use Doctrine\ORM\Mapping as ORM;
|
|
6
|
+
|
|
7
|
+/**
|
|
8
|
+ * @ORM\Entity
|
|
9
|
+ * @ORM\Table(name="users_tags_favorites")
|
|
10
|
+ */
|
|
11
|
+class UsersTagsFavorites
|
|
12
|
+{
|
|
13
|
+
|
|
14
|
+ /**
|
|
15
|
+ * @ORM\ManyToOne(targetEntity="Muzich\UserBundle\Entity\User", inversedBy="tags_favorites")
|
|
16
|
+ * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
|
|
17
|
+ */
|
|
18
|
+ protected $users_favorites;
|
|
19
|
+
|
|
20
|
+ /**
|
|
21
|
+ * @ORM\ManyToOne(targetEntity="Muzich\CoreBundle\Entity\Tag", inversedBy="users_favorites")
|
|
22
|
+ * @ORM\JoinColumn(name="tag_id", referencedColumnName="id")
|
|
23
|
+ */
|
|
24
|
+ protected $tags_favorites;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+ /**
|
|
28
|
+ * @ORM\Id
|
|
29
|
+ * @ORM\Column(type="integer")
|
|
30
|
+ * @ORM\GeneratedValue(strategy="AUTO")
|
|
31
|
+ * @var type int
|
|
32
|
+ */
|
|
33
|
+ protected $id;
|
|
34
|
+
|
|
35
|
+ /**
|
|
36
|
+ * @ORM\Column(type="integer")
|
|
37
|
+ * @var type int
|
|
38
|
+ */
|
|
39
|
+ protected $position;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+ /**
|
|
43
|
+ * Set position
|
|
44
|
+ *
|
|
45
|
+ * @param integer $position
|
|
46
|
+ */
|
|
47
|
+ public function setPosition($position)
|
|
48
|
+ {
|
|
49
|
+ $this->position = $position;
|
|
50
|
+ }
|
|
51
|
+
|
|
52
|
+ /**
|
|
53
|
+ * Get position
|
|
54
|
+ *
|
|
55
|
+ * @return integer
|
|
56
|
+ */
|
|
57
|
+ public function getPosition()
|
|
58
|
+ {
|
|
59
|
+ return $this->position;
|
|
60
|
+ }
|
|
61
|
+
|
|
62
|
+ /**
|
|
63
|
+ * Set users_favorites
|
|
64
|
+ *
|
|
65
|
+ * @param Muzich\UserBundle\Entity\User $usersFavorites
|
|
66
|
+ */
|
|
67
|
+ public function setUsersFavorites(Muzich\UserBundle\Entity\User $usersFavorites)
|
|
68
|
+ {
|
|
69
|
+ $this->users_favorites = $usersFavorites;
|
|
70
|
+ }
|
|
71
|
+
|
|
72
|
+ /**
|
|
73
|
+ * Get users_favorites
|
|
74
|
+ *
|
|
75
|
+ * @return \Muzich\UserBundle\Entity\User
|
|
76
|
+ */
|
|
77
|
+ public function getUsersFavorites()
|
|
78
|
+ {
|
|
79
|
+ return $this->users_favorites;
|
|
80
|
+ }
|
|
81
|
+
|
|
82
|
+ /**
|
|
83
|
+ * Set tags_favorites
|
|
84
|
+ *
|
|
85
|
+ * @param Muzich\CoreBundle\Entity\Tag $tagsFavorites
|
|
86
|
+ */
|
|
87
|
+ public function setTagsFavorites(Muzich\CoreBundle\Entity\Tag $tagsFavorites)
|
|
88
|
+ {
|
|
89
|
+ $this->tags_favorites = $tagsFavorites;
|
|
90
|
+ }
|
|
91
|
+
|
|
92
|
+ /**
|
|
93
|
+ * Get tags_favorites
|
|
94
|
+ *
|
|
95
|
+ * @return Muzich\CoreBundle\Entity\Tag
|
|
96
|
+ */
|
|
97
|
+ public function getTagsFavorites()
|
|
98
|
+ {
|
|
99
|
+ return $this->tags_favorites;
|
|
100
|
+ }
|
|
101
|
+
|
|
102
|
+}
|