[Dbix-class] Relationship to serve internationalization
Michele Beltrame
mb at italpro.net
Wed Nov 22 15:48:49 GMT 2006
Hello!
I suggest you do not setup per-language relations, or you'll end up
having to add relationships if you add one or more languages. I usually
keep an has_many relation in main table (Ministries in your example)
toward the I18N table. This allows to do:
my $i18n_content = $row->i18n({ lang => 'ru' })->content;
Michele.
--
Michele Beltrame
http://www.varlogarthas.net/
ICQ# 76660101
Informativa privacy: http://www.italpro.net/em.html
More information about the Dbix-class
mailing list