Skip to content

Commit 9273057

Browse files
Annotations override naming strategy (#8041)
Add a note/warning that annotations override the naming strategy.
1 parent e04a795 commit 9273057

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/en/reference/namingstrategy.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ Implementing a NamingStrategy
44
.. versionadded:: 2.3
55

66
Using a naming strategy you can provide rules for generating database identifiers,
7-
column or table names when the column or table name is not given. This feature helps
7+
column or table names. This feature helps
88
reduce the verbosity of the mapping document, eliminating repetitive noise (eg: ``TABLE_``).
99

10+
.. warning
11+
12+
The naming strategy is always overridden by entity mapping such as the `Table` annotation.
13+
1014
Configuring a naming strategy
1115
-----------------------------
1216
The default strategy used by Doctrine is quite minimal.

0 commit comments

Comments
 (0)