From bccc46dc125e4e6a05e43271389579ab4254b705 Mon Sep 17 00:00:00 2001 From: Dan Barrett Date: Wed, 1 Nov 2017 16:40:04 +1100 Subject: [PATCH] Corrected demo code to match example Example paragraph mentions changing column titles to upper case, yet `strtolower` was being used. --- docs/en/reference/namingstrategy.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/namingstrategy.rst b/docs/en/reference/namingstrategy.rst index fff5e601a..b81872fd0 100644 --- a/docs/en/reference/namingstrategy.rst +++ b/docs/en/reference/namingstrategy.rst @@ -126,12 +126,12 @@ You need to create a class which implements ``Doctrine\ORM\Mapping\NamingStrateg } public function joinTableName($sourceEntity, $targetEntity, $propertyName = null) { - return strtolower($this->classToTableName($sourceEntity) . '_' . + return strtoupper($this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity)); } public function joinKeyColumnName($entityName, $referencedColumnName = null) { - return strtolower($this->classToTableName($entityName) . '_' . + return strtoupper($this->classToTableName($entityName) . '_' . ($referencedColumnName ?: $this->referenceColumnName())); } }