소스 검색

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;
     }
+    
+    public function __isset($property)
+    {
+        return in_array($property, $this->properties);
+    }
 
     /**
      * Returns locale name for the current translation proxy instance.