src/AppBundle/Controller/DeliveriesController.php 1 location
|
@@ 75-86 (lines=12) @@
|
| 72 |
|
* @Method("GET") |
| 73 |
|
* @Template() |
| 74 |
|
*/ |
| 75 |
|
public function editAction(Orders $orders) |
| 76 |
|
{ |
| 77 |
|
$editForm = $this->createForm(OrdersEditType::class, $orders, array( |
| 78 |
|
'action' => $this->generateUrl('deliveries_update', array('id' => $orders->getId())), |
| 79 |
|
'method' => 'PUT', |
| 80 |
|
)); |
| 81 |
|
|
| 82 |
|
return array( |
| 83 |
|
'orders' => $orders, |
| 84 |
|
'edit_form' => $editForm->createView(), |
| 85 |
|
); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* Edits an existing Orders entity. |
src/AppBundle/Controller/InvoicesController.php 1 location
|
@@ 73-84 (lines=12) @@
|
| 70 |
|
* @Method("GET") |
| 71 |
|
* @Template() |
| 72 |
|
*/ |
| 73 |
|
public function editAction(Orders $orders) |
| 74 |
|
{ |
| 75 |
|
$editForm = $this->createForm(InvoicesEditType::class, $orders, array( |
| 76 |
|
'action' => $this->generateUrl('invoices_update', array('id' => $orders->getId())), |
| 77 |
|
'method' => 'PUT', |
| 78 |
|
)); |
| 79 |
|
|
| 80 |
|
return array( |
| 81 |
|
'orders' => $orders, |
| 82 |
|
'edit_form' => $editForm->createView(), |
| 83 |
|
); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
/** |
| 87 |
|
* Edits an existing Orders entity. |