Procházet zdrojové kódy

Do not ask for setter if the property is defined as @ReadOnly

Amal Raghav před 13 roky
rodič
revize
528620884e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Metadata/PropertyMetadata.php

+ 1 - 1
Metadata/PropertyMetadata.php

@@ -56,7 +56,7 @@ class PropertyMetadata extends BasePropertyMetadata
                 }
             }
 
-            if (empty($setter)) {
+            if (empty($setter) && !$this->readOnly) {
                 if ($class->hasMethod('set'.$this->name) && $class->getMethod('set'.$this->name)->isPublic()) {
                     $setter = 'set'.$this->name;
                 } else {