浏览代码

Merge pull request #346 from kufi/patch-1

Implemented __isset function in TranslationProxy.
Gediminas Morkevicius 13 年之前
父节点
当前提交
6ef9ac2be2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      lib/Gedmo/Translator/TranslationProxy.php

+ 5 - 0
lib/Gedmo/Translator/TranslationProxy.php

@@ -98,6 +98,11 @@ class TranslationProxy
 
 
         $this->translatable->$property = $value;
         $this->translatable->$property = $value;
     }
     }
+    
+    public function __isset($property)
+    {
+        return in_array($property, $this->properties);
+    }
 
 
     /**
     /**
      * Returns locale name for the current translation proxy instance.
      * Returns locale name for the current translation proxy instance.