| @@ 64-74 (lines=11) @@ | ||
| 61 | * |
|
| 62 | * @return Response |
|
| 63 | */ |
|
| 64 | public function newAction(Request $request) |
|
| 65 | { |
|
| 66 | $countryMapping = new CountryMapping(); |
|
| 67 | $form = $this->getForm($countryMapping); |
|
| 68 | $res = $this->handleUpdate($form, $countryMapping, $request); |
|
| 69 | if($res) { |
|
| 70 | return $res; |
|
| 71 | } |
|
| 72 | ||
| 73 | return $this->updateResponse($countryMapping, $form); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @Method({"GET", "POST"}) |
|
| @@ 85-94 (lines=10) @@ | ||
| 82 | * |
|
| 83 | * @return Response |
|
| 84 | */ |
|
| 85 | public function editAction(CountryMapping $countryMapping, Request $request) |
|
| 86 | { |
|
| 87 | $form = $this->getForm($countryMapping); |
|
| 88 | $res = $this->handleUpdate($form, $countryMapping, $request); |
|
| 89 | if($res) { |
|
| 90 | return $res; |
|
| 91 | } |
|
| 92 | ||
| 93 | return $this->updateResponse($countryMapping, $form); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * @param Form $form |
|