]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Update naming strategy since Doctrine 2.5
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 30 May 2015 11:40:39 +0000 (13:40 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 30 May 2015 11:40:39 +0000 (13:40 +0200)
See https://github.com/doctrine/doctrine2/commit/20fb8270dc3c84eceaf90979644fdfbe0b2e615e

src/Wallabag/CoreBundle/Doctrine/Mapping/PrefixedNamingStrategy.php

index 861a60ea408fe137bd7d53c87f71c78e1e400ada..724812fd856dd948b150cfbf6dd74bcc7d9136ff 100644 (file)
@@ -72,4 +72,12 @@ class PrefixedNamingStrategy implements NamingStrategy
     {
         return strtolower($this->classToTableName($entityName) . '_' .($referencedColumnName ?: $this->referenceColumnName()));
     }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
+    {
+        return $propertyName.'_'.$embeddedColumnName;
+    }
 }