[Create] Add object, not ID
Add domain object, and not its identifier, when suing add method of composition from CopyTask, for consistency with test expectations.
This commit is contained in:
@@ -105,7 +105,7 @@ define(
|
||||
*/
|
||||
function addClonesToParent(self) {
|
||||
return self.parent.getCapability("composition")
|
||||
.add(self.firstClone.getId())
|
||||
.add(self.firstClone)
|
||||
.then(function (addedClone) {
|
||||
return self.parent.getCapability("persistence").persist()
|
||||
.then(function () {
|
||||
|
||||
Reference in New Issue
Block a user