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