Skip to content

Commit

Permalink
Annotations override naming strategy (#8041)
Browse files Browse the repository at this point in the history
Add a note/warning that annotations override the naming strategy.
  • Loading branch information
RosemaryOrchard committed Mar 1, 2020
1 parent e04a795 commit 9273057
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/en/reference/namingstrategy.rst
Expand Up @@ -4,9 +4,13 @@ Implementing a NamingStrategy
.. versionadded:: 2.3

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

.. warning
The naming strategy is always overridden by entity mapping such as the `Table` annotation.
Configuring a naming strategy
-----------------------------
The default strategy used by Doctrine is quite minimal.
Expand Down

0 comments on commit 9273057

Please sign in to comment.