Relation entity |
Hello! I am from Argentina. Sorry for my bad English.
I have a simple entity: PHP Code: <?php This entity is associated with a user model. My question is: How do I communicate, for example, id_area with your table? The desired result would be: $user->area->name or $user->area->id. Thanks.
CodeIgniter does not have built-in Object Relation Mapping so you will either need to do this yourself or use a module that adds that functionality (https://github.com/tattersoftware/codeig...-relations, https://forum.codeigniter.com/thread-748...#pid369959, https://github.com/yidas/codeigniter-model).
|
Welcome Guest, Not a member yet? Register Sign In |