Pārlūkot izejas kodu

Merge pull request #472 from n1c01a5/master

Fix an error to setting var
Christophe Coevoet 12 gadi atpakaļ
vecāks
revīzija
0add69ccb0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lib/Gedmo/Loggable/LoggableListener.php

+ 1 - 1
lib/Gedmo/Loggable/LoggableListener.php

@@ -238,8 +238,8 @@ class LoggableListener extends MappedEventSubscriber
             }
             $uow = $om->getUnitOfWork();
             $logEntry->setObjectId($objectId);
+            $newValues = array();
             if ($action !== self::ACTION_REMOVE && isset($config['versioned'])) {
-                $newValues = array();
                 foreach ($ea->getObjectChangeSet($uow, $object) as $field => $changes) {
                     if (!in_array($field, $config['versioned'])) {
                         continue;