Hello guys, here is sample database/table organization i want to use for i18n application:
table news, columns: id, isactive, createdat
table newsi18n, columns: foreignkey, language, title, content
My issue at the moment is with models and that i have to create a model for the Newsi18n 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 newsi18n table.
Any suggestions or sample public code will be greatly appreciated.