Skip to content

Commit fc1cba7

Browse files
committed
Update create.php.twig
1 parent f5b8993 commit fc1cba7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Resources/templates/CommonAdmin/NewAction/create.php.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
$this->preBindRequest(${{ builder.ModelClass }});
1313
$form = $this->getNewForm(${{ builder.ModelClass }});
1414
$form->handleRequest($this->get('request'));
15-
$this->postBindRequest(${{ builder.ModelClass }});
15+
$this->postBindRequest($form, ${{ builder.ModelClass }});
1616

1717
if ($form->isSubmitted() && $form->isValid()) {
1818
try {
@@ -83,9 +83,10 @@
8383
/**
8484
* This method is here to make your life better, so overwrite it
8585
*
86+
* @param \Symfony\Component\Form\Form $form the valid form
8687
* @param \{{ model }} ${{ builder.ModelClass }} your \{{ model }} object
8788
*/
88-
public function postBindRequest(\{{ model }} ${{ builder.ModelClass }})
89+
public function postBindRequest(\Symfony\Component\Form\Form $form, \{{ model }} ${{ builder.ModelClass }})
8990
{
9091
}
9192

0 commit comments

Comments
 (0)