I have multiple entities with a one-to-many relations, such as:
A { List b; }
B { List c; }
C { some fields }
I'm trying to edit these entities by the editors
AEditor extends Editor {
BListEditor b...
}
BListEditor implements IsEditor>{
BItemEditor implements Editor{
CListEditor c...
}
Flush results: http://pastebin.com/En8Ughnj
Is obtained that the object B was added to the object A, and object C still
remains in the array editedProxies
понедельник, 11 ноября 2013 г., 3:47:05 UTC+4 пользователь almagnit написал:
>
> I have multiple entities with a one-to-many relations, such a
>From the code you sent me by mail, the problem is that you're editing B
with a 'null' c and then call listEditor.setValue(newList) as an attempt to
assign B.c. This won't work.
You have to assign a non-empty list to B.c *before* you edit it (i.e. just
after the context.create(B.class), before y
Big thanks Thomas You're absolutely right
вторник, 12 ноября 2013 г., 13:43:31 UTC+4 пользователь Thomas Broyer
написал:
>
> From the code you sent me by mail, the problem is that you're editing B
> with a 'null' c and then call listEditor.setValue(newList) as an attempt to
> assign B.c. This w