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