Explorar o código

Check if key 'activate_locking' is set in config file.

Frédéric Hardy %!s(int64=13) %!d(string=hai) anos
pai
achega
9c2cfec09f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.");
         }