Welcome Guest, Not a member yet? Register   Sign In
Entity with Model finder (custom setters)
#11

I don’t understand what prevents you from making your own entity class and doing what you want with it?
PHP Code:
class MyEntity extends \CodeIgniter\Entity\Entity 
{
    public function 
setAttributes($data)
    {
        
$this->fill($data)->syncOriginal();
    }

Reply
#12

I'm worried about compatibility in the future.
Now I use events, as I additionally link other tables (one to one, one to many ...)
Reply
#13

Just use unit tests.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB