Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
<?php
/*
* This file is part of the WikiTagBundle package.
*
* (c) IRI <http://www.iri.centrepompidou.fr/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace IRI\Bundle\WikiTagBundle\Model;
use Doctrine\Common\Collections\ArrayCollection;
interface DocumentInterface {
/**
* Get id
*
* @return integer
*/
function getId();
/**
* Set title
*
* @param string $title
*/
function setTitle($title);
/**
* Get title
*
* @return string
*/
function getTitle();
/**
* Set description
*
* @param text $description
*/
function setDescription($description);
/**
* Get description
*
* @return text
*/
function getDescription();
}