Skip to content

Commit 39c290d

Browse files
authored
Merge pull request #1 from STC-Steven/all-models-get-set-patch-1
* Fix getters/setters camelize concat issue
2 parents 002d386 + fd465c3 commit 39c290d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Phalcon/Builder/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public function build()
439439
$attributes[] = $this->snippet->getAttributes($type, $useSettersGetters ? 'protected' : 'public', $field, $this->options->has( 'annotate' ), $fieldName);
440440

441441
if ($useSettersGetters) {
442-
$methodName = Utils::camelize($field->getName(). '_-');
442+
$methodName = Utils::camelize($field->getName(), '_-');
443443
$setters[] = $this->snippet->getSetter($fieldName, $type, $methodName);
444444

445445
if (isset($this->_typeMap[$type])) {

0 commit comments

Comments
 (0)