Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Create and save new UserEmail
- * @param email The email to save
- * @param user The user in which the email belongs to
- * @return The UserEmail that was created
- */
- public static UserEmail create(String email, User user){
- UserEmail userEmail = new UserEmail(email);
- userEmail.user = user;
- userEmail.save();
- return userEmail;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement