Welcome Guest, Not a member yet? Register   Sign In
CI4 Model or Entity with Relation between two tables
#1

Hello Guys,

i love the new style of models. But i think one of needed thing is to set relation between to tables(models).


When u have two tables (or more) like this:
table1
id
users_id
content

users
id
username

So when i make a model on "table1" it should be possible to join table "users". This was possible with grocery_crud. Is this already possible and i couldnt find it?

I think the moste time you will have some relation between two tables or more. I know i could do it by $afterFind, but it wouldnt the performance would be really bad...

Hope i could explain, what i want.

Thanks for your Help
Reply


Messages In This Thread
CI4 Model or Entity with Relation between two tables - by fapth - 01-29-2019, 03:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB