magja/magja — Issue #42: 42 - categories.add(new Category("NAME")) does not work Product SAVE 
Author: ceefour
Created: 2011-11-02 11:34:25+00:00
State: open

Product product=new Product();
List<Category> categories=new ArrayList<Category>();
categories.add(new Category("NAME"));
product.setCategories(categories);

Does not assign the product to the named category

categories.add(new Category(id));

works fine.

Original link: http://code.google.com/p/magja/issues/detail?id=42