propelorm/Propel2

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

Summary

Maintainability
A
0 mins
Test Coverage

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