1
0
mirror of synced 2025-02-03 05:49:25 +03:00

Minor typo naming strategy documentation

This commit is contained in:
Adrien Crivelli 2017-04-22 00:05:57 +09:00 committed by GitHub
parent 318e9a5596
commit 692a1afa86

View File

@ -20,7 +20,7 @@ You can specify a different strategy by calling ``Doctrine\ORM\Configuration#set
<?php <?php
$namingStrategy = new MyNamingStrategy(); $namingStrategy = new MyNamingStrategy();
$configuration()->setNamingStrategy($namingStrategy); $configuration->setNamingStrategy($namingStrategy);
Underscore naming strategy Underscore naming strategy
--------------------------- ---------------------------
@ -31,7 +31,7 @@ Underscore naming strategy
<?php <?php
$namingStrategy = new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy(CASE_UPPER); $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 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. ``CASE_UPPER`` option, or some_entity_name with the ``CASE_LOWER`` option.