Commit 06dea9ef9faef49ae56b6fa544f983ffde3e99f6

Authored by Fellipe
1 parent 31db2a04
Exists in master and in 2 other branches 3,1, 3.1

Substitui submit por bind (deprecated)

Controller/CircuitsController.php
... ... @@ -50,7 +50,7 @@ class CircuitsController extends Controller
50 50 {
51 51 $entity = new Circuits();
52 52 $form = $this->createForm(new CircuitsType(), $entity);
53   - $form->submit($request);
  53 + $form->bind($request);
54 54  
55 55 if ($form->isValid()) {
56 56 $em = $this->getDoctrine()->getManager();
... ... @@ -155,7 +155,7 @@ class CircuitsController extends Controller
155 155  
156 156 $deleteForm = $this->createDeleteForm($id);
157 157 $editForm = $this->createForm(new CircuitsType(), $entity);
158   - $editForm->submit($request);
  158 + $editForm->bind($request);
159 159  
160 160 if ($editForm->isValid()) {
161 161 $em->persist($entity);
... ... @@ -179,7 +179,7 @@ class CircuitsController extends Controller
179 179 public function deleteAction(Request $request, $id)
180 180 {
181 181 $form = $this->createDeleteForm($id);
182   - $form->submit($request);
  182 + $form->bind($request);
183 183  
184 184 if ($form->isValid()) {
185 185 $em = $this->getDoctrine()->getManager();
... ...
Controller/EntityController.php
... ... @@ -47,7 +47,7 @@ class EntityController extends Controller
47 47 {
48 48 $entity = new Entity();
49 49 $form = $this->createForm(new EntityType(), $entity);
50   - $form->submit($request);
  50 + $form->bind($request);
51 51  
52 52 if ($form->isValid()) {
53 53 $em = $this->getDoctrine()->getManager();
... ... @@ -152,7 +152,7 @@ class EntityController extends Controller
152 152  
153 153 $deleteForm = $this->createDeleteForm($id);
154 154 $editForm = $this->createForm(new EntityType(), $entity);
155   - $editForm->submit($request);
  155 + $editForm->bind($request);
156 156  
157 157 if ($editForm->isValid()) {
158 158 $em->persist($entity);
... ... @@ -176,7 +176,7 @@ class EntityController extends Controller
176 176 public function deleteAction(Request $request, $id)
177 177 {
178 178 $form = $this->createDeleteForm($id);
179   - $form->submit($request);
  179 + $form->bind($request);
180 180  
181 181 if ($form->isValid()) {
182 182 $em = $this->getDoctrine()->getManager();
... ...
Controller/GraphController.php
... ... @@ -39,7 +39,7 @@ class GraphController extends Controller
39 39 public function graphShowAction(Request $request, $id)
40 40 {
41 41 $form = $this->graphForm();
42   - $form->submit($request);
  42 + $form->bind($request);
43 43  
44 44 if ($form->isValid())
45 45 {
... ... @@ -842,7 +842,7 @@ class GraphController extends Controller
842 842 public function reportShowAction(Request $request)
843 843 {
844 844 $form = $this->reportForm($request->request->get('entity'));
845   - $form->submit($request);
  845 + $form->bind($request);
846 846  
847 847 if ($form->isValid())
848 848 {
... ...
Controller/SnmpWebController.php
... ... @@ -22,7 +22,7 @@ class SnmpWebController extends Controller
22 22 public function snmpInfoAction(Request $request)
23 23 {
24 24 $form = $this->snmpForm();
25   - $form->submit($request);
  25 + $form->bind($request);
26 26  
27 27 if ($form->isValid())
28 28 {
... ...