Commit c1dd455c authored by Vincent Horváth's avatar Vincent Horváth

hot fix

parent ce523622
......@@ -84,7 +84,7 @@ public class EntityOverwriteGenerator extends SymfonyGenerator {
fieldsTemplate.add("metadata", "* @ORM\\ManyToMany(targetEntity=\"\\App\\Entity\\" + field.getRelationShip().getName() + "\")\n" +
"* @ORM\\Joinfield(name=\"`" + field.getName() + "_id`\", referencedfieldName=\"`id`\")");
} else {
fieldsTemplate.add("metadata", "* @ORM\\field(type=\"" + doctrineMapperHelper.get(field.getType().toString()) + "\", name=\"`" + HelperFunctions.mysqlFormat(field.getName()) + "`\")");
fieldsTemplate.add("metadata", "* @ORM\\Column(type=\"" + doctrineMapperHelper.get(field.getType().toString()) + "\", name=\"`" + HelperFunctions.mysqlFormat(field.getName()) + "`\")");
}
if (tmpFieldsTemplate != null) {
fieldsTemplate.add(KEY_FIELDS, tmpFieldsTemplate.render());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment