Permalink
Browse files

fix formMapper - change FormInterface to FieldInterface

  • Loading branch information...
1 parent 91fa1dc commit e784bccfdba02e340d98d624ea6db32bccf7ceaf @marphi committed with rande Feb 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Form/FormMapper.php
View
@@ -16,7 +16,7 @@
use Sonata\BaseApplicationBundle\Admin\FieldDescription;
use Symfony\Component\Form\Form;
-use Symfony\Component\Form\FormInterface;
+use Symfony\Component\Form\FieldInterface;
use Symfony\Component\Form\FormContextInterface;
use Symfony\Component\Validator\ValidatorInterface;
use Symfony\Component\Form\FieldFactory\FieldFactoryInterface;
@@ -50,7 +50,7 @@ public function add($name, array $fieldOptions = array(), array $fieldDescriptio
$fieldDescription = $name;
$fieldDescription->mergeOptions($fieldDescriptionOptions);
- } else if ($name instanceof FormInterface) {
+ } else if ($name instanceof FieldInterface) {
$field = $name;

0 comments on commit e784bcc

Please sign in to comment.