Browse Source

[Sluggable] Remove unused variable $fields

Jonathan Ingram 12 năm trước cách đây
mục cha
commit
428bc2b55a
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      lib/Gedmo/Sluggable/SluggableListener.php

+ 0 - 1
lib/Gedmo/Sluggable/SluggableListener.php

@@ -189,7 +189,6 @@ class SluggableListener extends MappedEventSubscriber
         $config = $this->getConfiguration($om, $meta->name);
         foreach ($config['slugs'] as $slugField => $options) {
             $options['useObjectClass'] = $config['useObjectClass'];
-            $fields = $options['fields'];
             // collect the slug from fields
             $slug = $meta->getReflectionProperty($slugField)->getValue($object);
             // if slug should not be updated, skip it