File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ use {{ use }};
20
20
{% endfor %}
21
21
*/
22
22
{% if class . abstract % }abstract {% endif % }class {{ class . name }}{% if class . parent % } extends {{ class . parent }}{% endif % }{% if class . interfaceName % } implements {{ class . interfaceName }}{% endif % }
23
+
23
24
{
24
25
{% for constant in class . constants % }
25
26
/**
@@ -36,7 +37,7 @@ use {{ use }};
36
37
* {{ annotation }}
37
38
{% endfor %}
38
39
*/
39
- {{ config . fieldVisibility }} ${{ field . name }}{% if field . isArray and (field . isEnum or not field . typeHint or not config . useDoctrineCollection ) % } = []{% endif % };
40
+ {{ config . fieldVisibility }} ${{ field . name }}{% if field . isArray and (field . isEnum or not field . typeHint or not config . doctrine . useCollection ) % } = []{% endif % };
40
41
{% endfor % }
41
42
42
43
{% if config . doctrine . useCollection and class . hasConstructor % }
@@ -45,7 +46,7 @@ use {{ use }};
45
46
parent :: __construct();
46
47
47
48
{% for field in class . fields % }
48
- {% if field . isArray and field . typeHint and not field . isEnum % }
49
+ {% if config . doctrine . useCollection and field . isArray and field . typeHint and not field . isEnum % }
49
50
$this -> {{ field . name }} = new ArrayCollection ();
50
51
{% endif % }
51
52
{% endfor % }
You can’t perform that action at this time.
0 commit comments