src/SimpleThings/EntityAudit/Controller/AuditController.php
public function viewDetailAction($className, $id, $rev)
    {
        $ids = explode(',', $id);
        $entity = $this->getAuditReader()->find($className, $ids, $rev);

        $data = $this->getAuditReader()->getEntityValues($className, $entity);
        krsort($data);

        return $this->render('SimpleThingsEntityAuditBundle:Audit:view_detail.html.twig', array(
            'id' => $id,
            'rev' => $rev,
            'className' => $className,
            'entity' => $entity,
            'data' => $data,
        ));
    }
public function viewDetailAction($className, $id, $rev)
    {
        $ids = explode(',', $id);
        $entity = $this->getAuditReader()->find($className, $ids, $rev);

        $data = $this->getAuditReader()->getEntityValues($className, $entity);
        krsort($data);

        return $this->render('SimpleThingsEntityAuditBundle:Audit:view_detail.html.twig', array(
            'id' => $id,
            'rev' => $rev,
            'className' => $className,
            'entity' => $entity,
            'data' => $data,
        ));
    }
public function viewDetailAction ( $ className , $ id , $ rev ) { $ ids = explode ( ',' , $ id ) ; $ entity = $ this -> getAuditReader ( ) -> find ( $ className , $ ids , $ rev ) ; $ data = $ this -> getAuditReader ( ) -> getEntityValues ( $ className , $ entity ) ; krsort ( $ data ) ; return $ this -> render ( 'SimpleThingsEntityAuditBundle:Audit:view_detail.html.twig' , array ( 'id' => $ id , 'rev' => $ rev , 'className' => $ className , 'entity' => $ entity , 'data' => $ data , ) ) ; }
Shows the data for an entity at the specified revision.

@param string $className
@param string $id Comma separated list of identifiers
@param int $rev
@return Response
Shows the data for an entity at the specified revision .