Skip to content

Commit

Permalink
delete product to category = null
Browse files Browse the repository at this point in the history
  • Loading branch information
weishiji committed Apr 27, 2017
1 parent 941d933 commit 20396ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/Category.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public void setStatus(byte aStatus){
public static Find<Long,Category> find = new Find<Long,Category>(){};

public static List<Category> list(){
//product_to_category = null;
List<Category> category = Category.find
List<Category> category = Category.find.select("product_to_category.*")
.fetch("product_to_category",new FetchConfig().lazy())
.fetch("product_to_category.product")
.where()
Expand Down Expand Up @@ -116,7 +115,6 @@ public static PagedList<Category> page(int page, int pageSize, String sortBy, St
}

public static Category getCategoryById(Long category_id){
//product_to_category = null;
Category category = Category.find.byId(category_id);

return category;
Expand Down

0 comments on commit 20396ef

Please sign in to comment.