public function listAction() {
        $entities = $this->container->get("haven_core.category.read_handler")->getAll();

        foreach ($entities as $entity) {
            $delete_forms[$entity->getId()] = $this->container->get("haven_core.category.form_handler")->createDeleteForm($entity->getId())->createView();
        }

        return array("entities" => $entities
            , 'delete_forms' => isset($delete_forms) && is_array($delete_forms) ? $delete_forms : array()
            , "entities" => $entities);
    }
public function listAction() {
        $entities = $this->container->get("haven_core.category.read_handler")->getAll();

        foreach ($entities as $entity) {
            $delete_forms[$entity->getId()] = $this->container->get("haven_core.category.form_handler")->createDeleteForm($entity->getId())->createView();
        }

        return array("entities" => $entities
            , 'delete_forms' => isset($delete_forms) && is_array($delete_forms) ? $delete_forms : array()
            , "entities" => $entities);
    }
public function listAction ( ) { $ entities = $ this -> container -> get ( "haven_core.category.read_handler" ) -> getAll ( ) ; foreach ( $ entities as $ entity ) { $ delete_forms [ $ entity -> getId ( ) ] = $ this -> container -> get ( "haven_core.category.form_handler" ) -> createDeleteForm ( $ entity -> getId ( ) ) -> createView ( ) ; } return array ( "entities" => $ entities , 'delete_forms' => isset ( $ delete_forms ) && is_array ( $ delete_forms ) ? $ delete_forms : array ( ) , "entities" => $ entities ) ; }
Finds and all persona for admin.

@Route("admin/list/category")
@Method("GET")
@Template()
Finds and all persona for admin .