propelorm/Propel2

View on GitHub
templates/Behavior/I18n/objectGetCurrentTranslation.php

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * Returns the current translation
 *
 * @param ConnectionInterface|null $con an optional connection object
 *
 * @return <?= $i18nTablePhpName ?>
 */
public function getCurrentTranslation(?ConnectionInterface $con = null)
{
    return $this->getTranslation($this->get<?= $localeColumnName ?>(), $con);
}