简体   繁体   中英

JTable class and multiple tables

is it possible to use JTable class for more than one table ? For example I have three tables:

language (id,lang_name, published)

translators (id, name,surname, phone, email, published)

trans_lang_rel(language and translator relation. one translator can translate from one or more languages)

id, trans_id, lang_id

So, can I use JTable class for it ?

Your help would be appreciated.

I doubt it. Because all of the member variables of your class should match the column names in the database. So 'id' would be overwritten.

JTable is located at /joomla/database/table.php , you can check how it works from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM