Skip to content

Commit

Permalink
Merge pull request #1 from STC-Steven/all-models-get-set-patch-1
Browse files Browse the repository at this point in the history
* Fix getters/setters camelize concat issue
  • Loading branch information
STC-Steven authored Aug 16, 2017
2 parents 002d386 + fd465c3 commit 39c290d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Phalcon/Builder/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public function build()
$attributes[] = $this->snippet->getAttributes($type, $useSettersGetters ? 'protected' : 'public', $field, $this->options->has( 'annotate' ), $fieldName);

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

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

0 comments on commit 39c290d

Please sign in to comment.