Преглед на файлове

[loggable] do not throw e if object is not fully reverted, closes #163

gediminasm преди 13 години
родител
ревизия
272b41fbe6
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      lib/Gedmo/Loggable/Document/Repository/LogEntryRepository.php
  2. 2 2
      lib/Gedmo/Loggable/Entity/Repository/LogEntryRepository.php

+ 2 - 2
lib/Gedmo/Loggable/Document/Repository/LogEntryRepository.php

@@ -99,9 +99,9 @@ class LogEntryRepository extends DocumentRepository
                 }
                 $filled = count($fields) === 0;
             }
-            if (count($fields)) {
+            /*if (count($fields)) {
                 throw new \Gedmo\Exception\UnexpectedValueException('Cound not fully revert the document to version: '.$version);
-            }
+            }*/
         } else {
             throw new \Gedmo\Exception\UnexpectedValueException('Count not find any log entries under version: '.$version);
         }

+ 2 - 2
lib/Gedmo/Loggable/Entity/Repository/LogEntryRepository.php

@@ -108,9 +108,9 @@ class LogEntryRepository extends EntityRepository
                 }
                 $filled = count($fields) === 0;
             }
-            if (count($fields)) {
+            /*if (count($fields)) {
                 throw new \Gedmo\Exception\UnexpectedValueException('Could not fully revert the entity to version: '.$version);
-            }
+            }*/
         } else {
             throw new \Gedmo\Exception\UnexpectedValueException('Count not find any log entries under version: '.$version);
         }