Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
core-1.5.0
-
None
Description
WrapperFactory#wrap(object, mode) as currently implemented will always just return the object passed in if already wrapped.
This used to be the correct behaviour, prior to the introduction of modes.
Now, however, if the domain object is already wrapped but with a wrapper that has different mode than that requested, it should be re-wrapped.