Welcome Guest, Not a member yet? Register   Sign In
save() with multiple tables
#1

Hi! I'm new with CodeIgniter 4 (and with web frameworks in general), and while I was doing a project I've encountered a problem. I want to add an element to a DB, but I'll need to write into two different tables (one of them with a foreign key to another). Can I achieve it with $model->save() or do I have to use another method to achieve this (like a DB query with JOIN or something like that)?

Thanks in advance  Smile
Reply


Messages In This Thread
save() with multiple tables - by yucar - 05-08-2020, 11:05 AM
RE: save() with multiple tables - by php_rocs - 05-08-2020, 05:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB