Skip to content

Commit ae91b1b

Browse files
committed
Update Member.php
1 parent e27793f commit ae91b1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Ubiquity/orm/creator/Member.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __toString() {
5454
} else {
5555
$annotationsStr .= "\n\t * " . \end($annotations);
5656
}
57-
$annotationsStr .= "\n\t**/";
57+
$annotationsStr .= "\n\t*/";
5858
}
5959
return $annotationsStr . "\n\t{$this->access} $" . $this->name . ";\n";
6060
}
@@ -193,8 +193,9 @@ public function getSetter() {
193193
}
194194

195195
public function getAddInManyMember() {
196-
if (\substr($this->name, - 1) === 's') {
197-
$name = \substr($this->name, 0, - 1);
196+
$name = $this->name;
197+
if (\substr($name, - 1) === 's') {
198+
$name = \substr($name, 0, - 1);
198199
}
199200
$result = "\n\t public function add" . \ucfirst($name) . '($' . $name . "){\n";
200201
$result .= "\t\t" . '$this->' . $this->name . '[]=$' . $name . ";\n";

0 commit comments

Comments
 (0)