Skip to content

Commit

Permalink
Merge pull request #1059 from alcaeus/add-underscore-number-aware-nam…
Browse files Browse the repository at this point in the history
…ing-strategy

Add number-aware underscore naming strategy
  • Loading branch information
alcaeus committed Nov 19, 2019
2 parents 2a72f76 + 10e5336 commit a374f3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Resources/config/orm.xml
Expand Up @@ -140,6 +140,10 @@
<!-- naming strategy -->
<service id="doctrine.orm.naming_strategy.default" class="%doctrine.orm.naming_strategy.default.class%" public="false" />
<service id="doctrine.orm.naming_strategy.underscore" class="%doctrine.orm.naming_strategy.underscore.class%" public="false" />
<service id="doctrine.orm.naming_strategy.underscore_number_aware" class="%doctrine.orm.naming_strategy.underscore.class%" public="false">
<argument type="constant">CASE_LOWER</argument>
<argument>true</argument>
</service>

<!-- quote strategy -->
<service id="doctrine.orm.quote_strategy.default" class="%doctrine.orm.quote_strategy.default.class%" public="false" />
Expand Down

0 comments on commit a374f3b

Please sign in to comment.