Skip to content

Commit

Permalink
[5-3] createInquiryForm()を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hidenorigoto committed Nov 4, 2015
1 parent dccb22a commit 817ac83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/lists/ch05/05-03.txt
@@ -0,0 +1,5 @@
private function createInquiryForm()
{
return $this->createFormBuilder(new Inquiry())
->add('name', 'text')
...
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/InquiryController.php
Expand Up @@ -79,7 +79,7 @@ public function completeAction()

private function createInquiryForm()
{
return $this->createFormBuilder()
return $this->createFormBuilder(new Inquiry())
->add('name', 'text')
->add('email', 'text')
->add('tel', 'text', [
Expand Down

0 comments on commit 817ac83

Please sign in to comment.