public function getTags()
    {
        $em = $this->container->get('doctrine')->getManager();
        $entities = $em->getRepository('BlogBundle:Tag')->findBy(array(),array('name' =>  'ASC'));
        
        return $entities;
    }
public function getTags()
    {
        $em = $this->container->get('doctrine')->getManager();
        $entities = $em->getRepository('BlogBundle:Tag')->findBy(array(),array('name' =>  'ASC'));
        
        return $entities;
    }
Returns array tags

@param object $tag