aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-05-30 13:40:39 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-05-30 13:40:39 +0200
commit2f3c816579968591291a60fc41c9b32284592dc8 (patch)
tree1907c99cabebac7e64f2cd9349640ffa9b4f4dd7 /src
parent9a014e48d65f30d0ca03bcc1eff5243421af52ca (diff)
downloadwallabag-2f3c816579968591291a60fc41c9b32284592dc8.tar.gz
wallabag-2f3c816579968591291a60fc41c9b32284592dc8.tar.zst
wallabag-2f3c816579968591291a60fc41c9b32284592dc8.zip
Update naming strategy since Doctrine 2.5
See https://github.com/doctrine/doctrine2/commit/20fb8270dc3c84eceaf90979644fdfbe0b2e615e
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Doctrine/Mapping/PrefixedNamingStrategy.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Doctrine/Mapping/PrefixedNamingStrategy.php b/src/Wallabag/CoreBundle/Doctrine/Mapping/PrefixedNamingStrategy.php
index 861a60ea..724812fd 100644
--- a/src/Wallabag/CoreBundle/Doctrine/Mapping/PrefixedNamingStrategy.php
+++ b/src/Wallabag/CoreBundle/Doctrine/Mapping/PrefixedNamingStrategy.php
@@ -72,4 +72,12 @@ class PrefixedNamingStrategy implements NamingStrategy
72 { 72 {
73 return strtolower($this->classToTableName($entityName) . '_' .($referencedColumnName ?: $this->referenceColumnName())); 73 return strtolower($this->classToTableName($entityName) . '_' .($referencedColumnName ?: $this->referenceColumnName()));
74 } 74 }
75
76 /**
77 * {@inheritdoc}
78 */
79 public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
80 {
81 return $propertyName.'_'.$embeddedColumnName;
82 }
75} 83}