Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update getDefaultOptions method declaration

  • Loading branch information...
commit 4fc41ff36bdda85cc8586cf7fe5d080799af22d2 1 parent da9a8d7
@metalmumu metalmumu authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 cookbook/symfony2/mastering-symfony2-forms-with-propel.markdown
View
14 cookbook/symfony2/mastering-symfony2-forms-with-propel.markdown
@@ -51,7 +51,7 @@ class BookType extends AbstractType
$builder->add('isbn');
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\Book',
@@ -186,7 +186,7 @@ class BookType extends AbstractType
$builder->add('author', new AuthorType());
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\Book',
@@ -219,7 +219,7 @@ class AuthorType extends AbstractType
$builder->add('last_name');
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\Author',
@@ -266,7 +266,7 @@ class AuthorType extends AbstractType
));
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\Author',
@@ -299,7 +299,7 @@ class BookType extends AbstractType
$builder->add('isbn');
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\Book',
@@ -372,7 +372,7 @@ class BookClubListType extends AbstractType
));
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\BookClubList',
@@ -425,7 +425,7 @@ class BookType extends AbstractType
));
}
- public function getDefaultOptions(array $options)
+ public function getDefaultOptions()
{
return array(
'data_class' => 'Acme\LibraryBundle\Model\Book',
Please sign in to comment.
Something went wrong with that request. Please try again.