propelorm/Propel2

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

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * Sets the locale for translations
 *
 * @param string $locale Locale to use for the translation, e.g. 'fr_FR'
 *
 * @return $this The current object (for fluent API support)
 */
public function set<?php echo $localeColumnName ?>($locale = '<?php echo $defaultLocale ?>')
{
    $this->currentLocale = $locale;

    return $this;
}