Skip to content

Commit

Permalink
Annotations override naming strategy
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 authored and greg0ire committed Feb 26, 2020
1 parent e04a795 commit 1d46a32
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 1d46a32

Please sign in to comment.