commit 29a07ce3af1182427b378ff8b310d1509f071e0e
parent 6a83b04b9dafeeec53768dbd88fc223144a1366b
Author: Timo A. Hummel <felicitus@felicitus.org>
Date: Mon, 27 Jul 2015 22:25:37 +0200
Don't generate association names with trailing ID
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PartKeepr/DoctrineReflectionBundle/Resources/views/model.js.twig b/src/PartKeepr/DoctrineReflectionBundle/Resources/views/model.js.twig
@@ -11,7 +11,7 @@ Ext.define('{{ className }}', {
{% if associations.MANY_TO_ONE|length > 0 %}
,
{% for association in associations.MANY_TO_ONE %}
- { name: '{{ association.name }}Id',
+ { name: '{{ association.name }}',
reference: '{{ association.target }}'
}{% if not loop.last %},{% endif %}