소스 검색

Merge pull request #280 from mageekguy/patch-1

Check if key 'activate_locking' is set in config file.
Gediminas Morkevicius 13 년 전
부모
커밋
0c695b3793
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Gedmo/Tree/Mapping/Driver/Xml.php

+ 1 - 1
lib/Gedmo/Tree/Mapping/Driver/Xml.php

@@ -125,7 +125,7 @@ class Xml extends BaseXml
             }
         }
 
-        if ($config['activate_locking'] && !isset($config['lock_time'])) {
+        if (isset($config['activate_locking']) && $config['activate_locking'] && !isset($config['lock_time'])) {
             throw new InvalidMappingException("You need to map a date field as the tree lock time field to activate locking support.");
         }