We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b6f45 commit 93f0728Copy full SHA for 93f0728
templates/doctrine/Entity.tpl.php
@@ -10,8 +10,9 @@
10
<?= $use_statements; ?>
11
12
#[ORM\Entity(repositoryClass: <?= $repository_class_name ?>::class)]
13
-<?php if ($should_escape_table_name): ?>#[ORM\Table(name: '`<?= $table_name ?>`')]
14
-<?php endif ?>
+<?php if ($should_render_table_annotation): ?>
+#[ORM\Table(name: '<?= $is_keyword ? '`'.$table_name.'`' : $table_name ?>')]
15
+<?php endif; ?>
16
<?php if ($api_resource): ?>
17
#[ApiResource]
18
<?php endif ?>
0 commit comments