Permalink
Browse files

Fixed admin form factory due to different order of arguments of Creat…

…eNamedBuilder() in Symfony 2.1
  • Loading branch information...
mgiagnoni committed Jun 27, 2012
1 parent bf0a1ab commit 3304dde2c505cf6a47e3f4c3e3d82080b5b351e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 FormFactory/AdminFormFactory.php
@@ -43,7 +43,7 @@ public function __construct(FormFactory $formFactory)
*/
public function createForm($type, $name, $data = null, array $options = array())
{
- $builder = $this->formFactory->createNamedBuilder($type, $name, $data, $options);
+ $builder = $this->formFactory->createNamedBuilder($name, $type, $data, $options);
return $builder->getForm();
}

0 comments on commit 3304dde

Please sign in to comment.