public function insert(C3op_Auth_User $new) { $data = array('login' => $new->getLogin(), 'name' => $new->GetName(), 'password' => $this->scrambleWithToken($new->GetRawPassword()), 'email' => $new->GetEmail(), 'role' => $new->GetRole(), 'status' => $new->GetStatus(), 'first_login' => $new->GetFirstLogin(), 'last_login' => $new->GetLastLogin()); $this->db->insert('auth_users', $data); $new->SetId((int) $this->db->lastInsertId()); $this->identityMap[$new] = $new->GetId(); }