File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Resources/templates/CommonAdmin/NewAction Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
$this->preBindRequest(${{ builder .ModelClass }});
13
13
$form = $this->getNewForm(${{ builder .ModelClass }});
14
14
$form->handleRequest($this->get('request'));
15
- $this->postBindRequest(${{ builder .ModelClass }});
15
+ $this->postBindRequest($form, $ {{ builder .ModelClass }});
16
16
17
17
if ($form->isSubmitted() && $form->isValid()) {
18
18
try {
83
83
/**
84
84
* This method is here to make your life better, so overwrite it
85
85
*
86
+ * @param \Symfony\Component\Form\Form $form the valid form
86
87
* @param \{{ model }} ${{ builder .ModelClass }} your \{{ model }} object
87
88
*/
88
- public function postBindRequest(\{{ model }} ${{ builder .ModelClass }})
89
+ public function postBindRequest(\Symfony\Component\Form\Form $form, \ {{ model }} ${{ builder .ModelClass }})
89
90
{
90
91
}
91
92
You can’t perform that action at this time.
0 commit comments