--- a/Model/Tag.php Fri Dec 09 04:53:56 2011 +0100
+++ b/Model/Tag.php Fri Dec 09 06:43:49 2011 +0100
@@ -56,8 +56,7 @@
* @var string $alternativeWikipediaUrl
*/
protected $alternativeWikipediaUrl;
-
-
+
/**
* @var bigint $wikipediaPageId
*/
@@ -92,9 +91,23 @@
* @var ArrayCollection $documents
*/
protected $documents;
+
+ /**
+ * @var DateTime
+ */
+ protected $createdAt;
/**
+ *
+ * construct the class
+ */
+ function __construct()
+ {
+ $this->createdAt = new \DateTime("now", new \DateTimeZone('UTC'));
+ }
+
+ /**
* Get id
*
* @return integer
@@ -397,6 +410,15 @@
{
return $this->category;
}
+
+ /**
+ * (non-PHPdoc)
+ * @see IRI\Bundle\WikiTagBundle\Model.TagInterface::getCreatedAt()
+ */
+ function getCreatedAt()
+ {
+ return $this->createdAt;
+ }
/**
* Get Documents