|
@@ -65,6 +65,14 @@ class Group
|
65
|
65
|
* @ORM\OneToMany(targetEntity="GroupsTagsFavorites", mappedBy="group")
|
66
|
66
|
*/
|
67
|
67
|
protected $tags;
|
|
68
|
+
|
|
69
|
+ /**
|
|
70
|
+ * Cet attribut contient les enregistrements Element lié
|
|
71
|
+ * a ce Groupe.
|
|
72
|
+ *
|
|
73
|
+ * @ORM\OneToMany(targetEntity="Element", mappedBy="group")
|
|
74
|
+ */
|
|
75
|
+ protected $elements;
|
68
|
76
|
|
69
|
77
|
/**
|
70
|
78
|
*
|
|
@@ -184,4 +192,24 @@ class Group
|
184
|
192
|
{
|
185
|
193
|
return $this->tags;
|
186
|
194
|
}
|
|
195
|
+
|
|
196
|
+ /**
|
|
197
|
+ * Add elements
|
|
198
|
+ *
|
|
199
|
+ * @param Element $elements
|
|
200
|
+ */
|
|
201
|
+ public function addElement(Element $elements)
|
|
202
|
+ {
|
|
203
|
+ $this->elements[] = $elements;
|
|
204
|
+ }
|
|
205
|
+
|
|
206
|
+ /**
|
|
207
|
+ * Get elements
|
|
208
|
+ *
|
|
209
|
+ * @return Doctrine\Common\Collections\Collection
|
|
210
|
+ */
|
|
211
|
+ public function getElements()
|
|
212
|
+ {
|
|
213
|
+ return $this->elements;
|
|
214
|
+ }
|
187
|
215
|
}
|