Thomas Rabaix 14 rokov pred
rodič
commit
7a5a9260af
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      Builder/ORM/FormContractor.php

+ 2 - 2
Builder/ORM/FormContractor.php

@@ -193,10 +193,10 @@ class FormContractor implements FormContractorInterface
      */
     protected function defineManyToManyField(FormBuilder $formBuilder, FieldDescriptionInterface $fieldDescription)
     {
-        $type     = $fieldDescription->getOption('form_field_type', 'sonata_admin_model');
+        $type     = $fieldDescription->getOption('form_field_type', 'sonata_type_model');
         $options  = $fieldDescription->getOption('form_field_options', array());
 
-        if ($type == 'sonata_admin_model') {
+        if ($type == 'sonata_type_model') {
             $options['class']               = $fieldDescription->getTargetEntity();
             $options['multiple']            = true;
             $options['field_description']   = $fieldDescription;