src/EntraideBundle/Controller/entraideController.php
/**
     * Finds and displays a entraide entity.
     *
     */
Finds and displays a entraide entity.
Finds and displays a entraide entity .
public function showAction(entraide $entraide)
    {
        $deleteForm = $this->createDeleteForm($entraide);
        $em=$this->getDoctrine()->getManager();
        $query=$em->getRepository('EntraideBundle:Entraide')->sumQB($entraide->getId());
        $queryView=$em->getRepository('EntraideBundle:Entraide')->viewQB($entraide->getId());
        $querycreation=$em->getRepository('EntraideBundle:Entraide')->creationDQL($entraide->getId());
        dump($querycreation);
        var_dump($queryView);
        var_dump($query);
        return $this->render('entraide/show.html.twig', array(
            'entraide' => $entraide,
            'delete_form' => $deleteForm->createView(),
            'somme'=>$query,
            'listes'=>$queryView,
            'creator'=> $querycreation
        ));
    }
public function showAction ( entraide $ entraide ) { $ deleteForm = $ this -> createDeleteForm ( $ entraide ) ; $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ query = $ em -> getRepository ( 'EntraideBundle:Entraide' ) -> sumQB ( $ entraide -> getId ( ) ) ; $ queryView = $ em -> getRepository ( 'EntraideBundle:Entraide' ) -> viewQB ( $ entraide -> getId ( ) ) ; $ querycreation = $ em -> getRepository ( 'EntraideBundle:Entraide' ) -> creationDQL ( $ entraide -> getId ( ) ) ; dump ( $ querycreation ) ; return $ this -> render ( 'entraide/show.html.twig' , array ( 'entraide' => $ entraide , 'delete_form' => $ deleteForm -> createView ( ) , 'somme' => $ query , 'listes' => $ queryView , 'creator' => $ querycreation ) ) ; }
Finds and displays a entraide entity.
Finds and displays a entraide entity .
// //        var_dump($queryView); // //        var_dump($query);