Hello guys, here is sample database/table organization i want to use for i18n application:
table news, columns: id, is_active, created_at
table news_i18n, columns: foreign_key, language, title, content
My issue at the moment is with models and that i have to create a model for the News_i18n table in order to use ORM or query builder. Is there a way to avoid this? My idea was to make a function which joins the two tables with phql, but even that requires me to have a model for the news_i18n table.
Any suggestions or sample public code will be greatly appreciated.