فهرست منبع

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

gediminasm 13 سال پیش
والد
کامیت
272b41fbe6

+ 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);
         }