Explorar el Código

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

Amal Raghav hace 13 años
padre
commit
528620884e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {