propelorm/Propel — Issue #223: Custom locale column problem on the addModelNameI18n method
Author: Divi
Created: 2011-12-09 10:33:19+00:00
State: open

If we have a custom locale column for the 18n behavior, the method addModelNameI18n return an "undefined method setLang" (for locale_column=lang) exception.

I think, you want to set the current model locale, so at the line : https://github.com/propelorm/Propel/commit/3f12eb72#L2R181
\$this->set$localeColumnName(\$locale);

should be :
\$this->setLocale(\$locale);