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