@@ -29,7 +29,7 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
2929
3030 {% foreach schema.getProperties() as property %}
3131 /**{% if viewHelper.getTypeHintAnnotation(property, true) %} @var {{ viewHelper.getTypeHintAnnotation(property, true) }}{% endif %}{% if property.getDescription() %} {{ property.getDescription() }}{% endif %} */
32- {% if property.isInternal() %}private{% else %}protected{% endif %} ${{ property.getAttribute() }}{% if not viewHelper.isNull(property.getDefaultValue()) %} = {{ property.getDefaultValue() }}{% endif %};
32+ {% if property.isInternal() %}private{% else %}protected{% endif %} ${{ property.getAttribute(true ) }}{% if not viewHelper.isNull(property.getDefaultValue()) %} = {{ property.getDefaultValue() }}{% endif %};
3333 {% endforeach %}
3434 /** @var array */
3535 protected $_rawModelDataInput = [];
@@ -117,27 +117,27 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
117117 {
118118 {{ schemaHookResolver.resolveGetterHook(property) }}
119119
120- return $this->{{ property.getAttribute() }};
120+ return $this->{{ property.getAttribute(true ) }};
121121 }
122122
123123 {% if not property.isReadOnly() %}
124124 /**
125125 * Set the value of {{ property.getName() }}.
126126 *
127- * @param {{ viewHelper.getTypeHintAnnotation(property) }} ${{ property.getAttribute() }}{% if property.getDescription() %} {{ property.getDescription() }}{% endif %}
127+ * @param {{ viewHelper.getTypeHintAnnotation(property) }} ${{ property.getAttribute(true ) }}{% if property.getDescription() %} {{ property.getDescription() }}{% endif %}
128128 *
129129 * {% if property.getValidators() %}@throws {% if generatorConfiguration.collectErrors() %}{{ viewHelper.getSimpleClassName(generatorConfiguration.getErrorRegistryClass()) }}{% else %}ValidationException{% endif %}{% endif %}
130130 *
131131 * @return self
132132 */
133133 public function set{{ viewHelper.ucfirst(property.getAttribute()) }}(
134- {{ viewHelper.getType(property) }} ${{ property.getAttribute() }}
134+ {{ viewHelper.getType(property) }} ${{ property.getAttribute(true ) }}
135135 ): self {
136- if ($this->{{ property.getAttribute() }} === ${{ property.getAttribute() }}) {
136+ if ($this->{{ property.getAttribute(true ) }} === ${{ property.getAttribute(true ) }}) {
137137 return $this;
138138 }
139139
140- $value = $modelData['{{ property.getName() }}'] = ${{ property.getAttribute() }};
140+ $value = $modelData['{{ property.getName() }}'] = ${{ property.getAttribute(true ) }};
141141
142142 {% if generatorConfiguration.collectErrors() %}
143143 $this->_errorRegistry = new {{ viewHelper.getSimpleClassName(generatorConfiguration.getErrorRegistryClass()) }}();
@@ -153,8 +153,8 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
153153 }
154154 {% endif %}
155155
156- $this->{{ property.getAttribute() }} = $value;
157- $this->_rawModelDataInput['{{ property.getName() }}'] = ${{ property.getAttribute() }};
156+ $this->{{ property.getAttribute(true ) }} = $value;
157+ $this->_rawModelDataInput['{{ property.getName() }}'] = ${{ property.getAttribute(true ) }};
158158
159159 {{ schemaHookResolver.resolveSetterAfterValidationHook(property) }}
160160
@@ -173,17 +173,17 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
173173 {
174174 {% if not generatorConfiguration.isImplicitNullAllowed() %}
175175 {% if not property.isRequired() %}
176- if (!array_key_exists('{{ property.getName() }}', $modelData) && $this->{{ property.getAttribute() }} === null) {
176+ if (!array_key_exists('{{ property.getName() }}', $modelData) && $this->{{ property.getAttribute(true ) }} === null) {
177177 return;
178178 }
179179 {% endif %}
180180 {% endif %}
181181
182- $value = array_key_exists('{{ property.getName() }}', $modelData) ? $modelData['{{ property.getName() }}'] : $this->{{ property.getAttribute() }};
182+ $value = array_key_exists('{{ property.getName() }}', $modelData) ? $modelData['{{ property.getName() }}'] : $this->{{ property.getAttribute(true ) }};
183183
184184 {{ viewHelper.resolvePropertyDecorator(property, true) }}
185185
186- $this->{{ property.getAttribute() }} = $this->validate{{ viewHelper.ucfirst(property.getAttribute()) }}($value, $modelData);
186+ $this->{{ property.getAttribute(true ) }} = $this->validate{{ viewHelper.ucfirst(property.getAttribute()) }}($value, $modelData);
187187 }
188188
189189 /**
0 commit comments