*/
public function classToTableName($className)
{
- return strtolower($this->prefix . substr($className, strrpos($className, '\\') + 1));
+ return strtolower($this->prefix.substr($className, strrpos($className, '\\') + 1));
}
/**
*/
public function joinColumnName($propertyName)
{
- return $propertyName . '_' . $this->referenceColumnName();
+ return $propertyName.'_'.$this->referenceColumnName();
}
/**
// ie: not "wallabag_entry_wallabag_tag" but "wallabag_entry_tag"
$target = substr($targetEntity, strrpos($targetEntity, '\\') + 1);
- return strtolower($this->classToTableName($sourceEntity) . '_' .$target);
+ return strtolower($this->classToTableName($sourceEntity).'_'.$target);
}
/**
*/
public function joinKeyColumnName($entityName, $referencedColumnName = null)
{
- return strtolower($this->classToTableName($entityName) . '_' .($referencedColumnName ?: $this->referenceColumnName()));
+ return strtolower($this->classToTableName($entityName).'_'.($referencedColumnName ?: $this->referenceColumnName()));
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
+ {
+ return $propertyName.'_'.$embeddedColumnName;
}
}