remove $ from class name

it is cased because the property start with underscore and
object is created on th fly

fix #2191
This commit is contained in:
Antonio Spinelli
2016-02-19 22:56:06 -02:00
parent 9ecea4b1f8
commit bab40566bc
2 changed files with 20 additions and 0 deletions

View File

@@ -372,6 +372,10 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
return camelize(name);
}
public static String camelize(String word) {
return DefaultCodegen.camelize(word).replaceAll("\\$", "");
}
@Override
public String toModelFilename(String name) {
// should be the same as the model name