SHARE
TWEET

UserEmail Create method V1

Noah-Huppert Nov 3rd, 2014 137 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Create and save new UserEmail
  3.  * @param email The email to save
  4.  * @param user The user in which the email belongs to
  5.  * @return The UserEmail that was created
  6.  */
  7. public static UserEmail create(String email, User user){
  8.     UserEmail userEmail = new UserEmail(email);
  9.     userEmail.user = user;
  10.     userEmail.save();
  11.  
  12.     return userEmail;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top