浏览代码

fixed getter call for properties with uppercase letters

Robert Gruendler 13 年之前
父节点
当前提交
916ef90cb2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Gedmo/Translator/TranslationProxy.php

+ 1 - 1
lib/Gedmo/Translator/TranslationProxy.php

@@ -49,7 +49,7 @@ class TranslationProxy
     {
         $matches = array();
         if (preg_match('/^(set|get)(.*)$/', $method, $matches)) {
-            $property = strtolower($matches[2]);
+            $property = lcfirst($matches[2]);
 
             if (in_array($property, $this->properties)) {
                 switch ($matches[1]) {