| @@ 27-37 (lines=11) @@ | ||
| 24 | * @Method("GET") |
|
| 25 | * @Template() |
|
| 26 | */ |
|
| 27 | public function indexAction(Request $request) |
|
| 28 | { |
|
| 29 | $em = $this->getDoctrine()->getManager(); |
|
| 30 | $qb = $em->getRepository('AppBundle:SubFamilyLog')->createQueryBuilder('s'); |
|
| 31 | $this->addQueryBuilderSort($qb, 'subfamilylog'); |
|
| 32 | $paginator = $this->get('knp_paginator')->paginate($qb, $request->query->get('page', 1), 20); |
|
| 33 | ||
| 34 | return array( |
|
| 35 | 'paginator' => $paginator, |
|
| 36 | ); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Finds and displays a SubFamilyLog entity. |
|
| @@ 27-35 (lines=9) @@ | ||
| 24 | * @Method("GET") |
|
| 25 | * @Template() |
|
| 26 | */ |
|
| 27 | public function indexAction(Request $request) |
|
| 28 | { |
|
| 29 | $em = $this->getDoctrine()->getManager(); |
|
| 30 | $qb = $em->getRepository('AppBundle:UnitStorage')->createQueryBuilder('u'); |
|
| 31 | $paginator = $this->get('knp_paginator')->paginate($qb, $request->query->get('page', 1), 20); |
|
| 32 | return array( |
|
| 33 | 'paginator' => $paginator, |
|
| 34 | ); |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Finds and displays a UnitStorage entity. |
|