Controller/PageController.php
public function getPageAction($id) {
        $manager = $this->get("doctrine_phpcr.odm.default_document_manager");
        $entity = $manager->getRepository('ApplicationToguApplicationModelsBundle:Page')->find($id);
        $view = View::create($entity, 200)->setSerializationContext($this->getSerializerContext(array("get")));;
        return $this->handleView($view);
    }
public function getPageAction($id) {
        $manager = $this->get("doctrine_phpcr.odm.default_document_manager");
        $entity = $manager->getRepository('ApplicationToguApplicationModelsBundle:Page')->find($id);
        $view = View::create($entity, 200)->setSerializationContext($this->getSerializerContext(array("get")));;
        return $this->handleView($view);
    }
Get detail of a Page record
@param              $id

@Route(requirements={"id"=".+"})      * @QueryParam(name="group", description="The JMS Serializer group", default="")
@QueryParam(name="depth", description="The depth to use for serialization", default="1")

@return \Symfony\Component\HttpFoundation\Response