Entity with Model finder (custom setters) |
Maybe return solution? And ohter drivers
PHP Code: if (is_subclass_of($className, Entity::class)) { If you completely remove the check on the Entity (and the private class), then fetch_object () does not call setters, it will immediately assign values to private properties. Therefore, the situation needs to be corrected. If I do fill() then everything works fine - private properties are set and $attributes are filled in my setters
Simple CI 4 project for beginners codeigniter-expenses
|
Welcome Guest, Not a member yet? Register Sign In |