Ticket #788 (closed Defect: fixed)
Core API: ChildTopics manipulators doesn't work for "many" childs
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.6 |
Component: | DeepaMehta Standard Distribution | Version: | 4.5 |
Keywords: | Cc: | dgf, Malte | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-core |
Description
When one of the manipulator methods is called on a ChildTopics object when the child is defined as many an exception is thrown, basically:
java.lang.RuntimeException: Invalid access to ChildTopicsModel entry "dm4.test.child": the caller assumes it to be multiple-value but it is single-value in {...}
These ChildTopics methods are affected:
set() setRef() remove()
Note: the Webclient handles models which include many relationships properly. Affected are 3rd-party applications (and/or migrations) which operate on a ChildTopics object directly. As a workaround create a ChildTopicsModel yourself and call the object's generic update() method.
Change History
Note: See
TracTickets for help on using
tickets.