| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function modificheAction(Request $request) |
||
| 15 | { |
||
| 16 | $nometabella = $request->get("nometabella"); |
||
| 17 | $nomecampo = $request->get("nomecampo"); |
||
| 18 | $id = (int) $request->get("id"); |
||
| 19 | |||
| 20 | $this->setup($request); |
||
| 21 | $namespace = $this->getNamespace(); |
||
| 22 | $bundle = $this->getBundle(); |
||
| 23 | $controller = $this->getController(); |
||
| 24 | |||
| 25 | $nomebundle = $namespace . $bundle . 'Bundle'; |
||
| 26 | |||
| 27 | $em = $this->getDoctrine()->getManager(); |
||
| 28 | |||
| 29 | $entity = $em->getRepository($nomebundle . ':' . $controller)->findBy( |
||
| 30 | array( |
||
| 31 | 'nometabella' => $nometabella, |
||
| 32 | 'nomecampo' => $nomecampo, |
||
| 33 | 'idtabella' => $id, |
||
| 34 | ) |
||
| 35 | ); |
||
| 36 | |||
| 37 | return $this->render('FiCoreBundle:Storicomodifiche:modifiche.html.twig', array("modifiche" => $entity)); |
||
| 38 | } |
||
| 40 |