فهرست منبع

REFACTOR: Replaced deprecated property_path => false to mapped => false

luxemate 12 سال پیش
والد
کامیت
1b5ead269d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Form/Type/AdminType.php

+ 1 - 1
Form/Type/AdminType.php

@@ -28,7 +28,7 @@ class AdminType extends AbstractType
         $admin = $this->getAdmin($options);
         $admin = $this->getAdmin($options);
 
 
         if ($options['delete'] && $admin->isGranted('DELETE') ) {
         if ($options['delete'] && $admin->isGranted('DELETE') ) {
-            $builder->add('_delete', 'checkbox', array('required' => false, 'property_path' => false));
+            $builder->add('_delete', 'checkbox', array('required' => false, 'mapped' => false));
         }
         }
 
 
         if (!$admin->hasSubject()) {
         if (!$admin->hasSubject()) {