Skip to content

Commit

Permalink
Merge pull request #6410 from PowerKiKi/patch-2
Browse files Browse the repository at this point in the history
Minor typo naming strategy documentation
  • Loading branch information
Ocramius committed Apr 23, 2017
2 parents 318e9a5 + 692a1af commit 03972c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/namingstrategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can specify a different strategy by calling ``Doctrine\ORM\Configuration#set
<?php
$namingStrategy = new MyNamingStrategy();
$configuration()->setNamingStrategy($namingStrategy);
$configuration->setNamingStrategy($namingStrategy);
Underscore naming strategy
---------------------------
Expand All @@ -31,7 +31,7 @@ Underscore naming strategy
<?php
$namingStrategy = new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy(CASE_UPPER);
$configuration()->setNamingStrategy($namingStrategy);
$configuration->setNamingStrategy($namingStrategy);
For SomeEntityName the strategy will generate the table SOME_ENTITY_NAME with the
``CASE_UPPER`` option, or some_entity_name with the ``CASE_LOWER`` option.
Expand Down

0 comments on commit 03972c9

Please sign in to comment.