Oct 8, 2016
4
Level 1
One Foreign key with multiple reference table
I have 4 table with one table has relation 3 tables. Lecturer (id, name, contact, email) Registrant (id, name, contact, email) Assistant (id, name, contact, email)
and Phonebook (id, name, contact, email)
id in phonebook table has a relation of 3 tables id lecturer, registrar and assistant. and 1 id owned only one name. how do I make the relations in the model and call the function in the controller.
thanks for the answers given, pardon my language less understandable
Please or to participate in this conversation.