Entity with Model finder (custom setters) |
Maybe I didn't put it that way. I like to have a whole entity and work with a domain model. And not just a line of the table. having special behavior is good otherwise why create getters if setters are forbidden? Just need to allow fill() on query, if you want to hard save attributes, do it after setAttibutes().
Simple CI 4 project for beginners codeigniter-expenses
|
Welcome Guest, Not a member yet? Register Sign In |