You must use the "set" method to update an entry. (Again) |
Hello everyone,
I'm currently migrating my CI3 project to CI4, but unfortunately I'm struggling with I guess one of the easier things ![]() In general I only want to create a user in my user model. This is my Controller Test Case PHP Code: public function CreateUserTest() This is my UserModel declaration and definitions PHP Code: protected $DBGroup = 'users'; This is my insert statement inside the createuser method PHP Code: $this->set('uuid', 'UUID()', false); The result from var_dump looks like this: Code: array(6) { ["username"]=> string(5) "MrXXX" ["first_name"]=> string(3) "Max" ["last_name"]=> string(6) "Muster" ["email_address"]=> string(15) "[email protected]" ["password"]=> string(60) "CleandUpCleandUp..." ["activation_token"]=> string(254) "CleandUpCleandUp..." } Thx for your help! |
Welcome Guest, Not a member yet? Register Sign In |