Model/Tag.php
changeset 14 673b2766024e
parent 11 5f038a505cd7
child 42 0e57c730bb18
--- a/Model/Tag.php	Tue Oct 25 12:20:47 2011 +0200
+++ b/Model/Tag.php	Wed Oct 26 15:38:05 2011 +0200
@@ -9,7 +9,9 @@
  */
  namespace IRI\Bundle\WikiTagBundle\Model;
  
- use IRI\Bundle\WikiTagBundle\Utils\WikiTagUtils;
+ use Doctrine\Common\Collections\ArrayCollection;
+
+use IRI\Bundle\WikiTagBundle\Utils\WikiTagUtils;
 
 abstract class Tag implements TagInterface {
     
@@ -70,6 +72,11 @@
      */
     protected $category;
 
+    /**
+     * @var ArrayCollection $documents
+     */
+    protected $documents;
+
 
     /**
      * Get id
@@ -301,6 +308,16 @@
     {
         return $this->category;
     }
+
+    /**
+     * Get Documents
+     *
+     * @return ArrayCollection
+     */
+    public function getDocuments()
+    {
+        return $this->documents;
+    }
     
     /**
      * Set category to Null