Skip to content

Commit 93f0728

Browse files
committed
Adjust the template for the parameters
1 parent f3b6f45 commit 93f0728

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/doctrine/Entity.tpl.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
<?= $use_statements; ?>
1111

1212
#[ORM\Entity(repositoryClass: <?= $repository_class_name ?>::class)]
13-
<?php if ($should_escape_table_name): ?>#[ORM\Table(name: '`<?= $table_name ?>`')]
14-
<?php endif ?>
13+
<?php if ($should_render_table_annotation): ?>
14+
#[ORM\Table(name: '<?= $is_keyword ? '`'.$table_name.'`' : $table_name ?>')]
15+
<?php endif; ?>
1516
<?php if ($api_resource): ?>
1617
#[ApiResource]
1718
<?php endif ?>

0 commit comments

Comments
 (0)