Model/Document.php
changeset 27 8551d844b4f3
parent 23 b435f8055cb4
child 58 87bf6ec8af90
--- a/Model/Document.php	Fri Nov 04 15:59:49 2011 +0100
+++ b/Model/Document.php	Sun Nov 06 23:44:37 2011 +0100
@@ -11,6 +11,7 @@
 namespace IRI\Bundle\WikiTagBundle\Model;
 
 use Doctrine\Common\Collections\ArrayCollection;
+use Doctrine\Common\Util\Debug;
 
 abstract class Document implements DocumentInterface {
     
@@ -117,5 +118,9 @@
         return $this->tagsStr;
     }
     
+    public function __toString()
+    {
+        return print_r(Debug::export($this, 3),true);
+    }
 
 }