Meet CodeIgniter MY_Model |
(09-25-2016, 01:06 AM)dgvirtual Wrote: Do I understand correctly that My_Model should not be asked to handle relationships on insert or update operations? MY_Model can be asked whatever you want it to ask, as long as it's not "too applied" to a certain table. If anything is possible, there could be a piece of code that could handle what you asked. The internet is huge. On the other hand, if there isn't, you can create that piece of code and do a pull request on my MY_Model, if you wish to. Or you can use an ORM... But from your question, what I actually understand is the fact that you think that MY_Model is a paradigm. MY_Model is not a paradigm, it's only a tool that can help you do things faster. For more complex things like what you asked you should simply not use MY_Model's methods, and just get your hands wet with the query builder. Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |