/** * New user. * * @return \Phalcon\UserPlugin\Models\User\User */ protected function newUser() { $user = new User(); $user->setMustChangePassword(0); $user->setGroupId(2); $user->setStatus(User::STATUS_ACTIVE); $user->profile = new UserProfile(); return $user; }