Package com.scooterframework.orm.activerecord

Examples of com.scooterframework.orm.activerecord.ActiveRecord.reload()


    public String addFollowing() {
        String username = p("username");
      ActiveRecord user = Account.findFirst("username='" + username + "'");

        ActiveRecord loginUser = LoginHelper.loginUser();
        loginUser.reload();
        loginUser.allAssociated("followings").add(user);

        return redirectTo("/" + loginUser.getField("username"));
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.