diff -r 11fd79666374 -r 8551d844b4f3 Model/Document.php --- 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); + } }