[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) {
|
function addClonesToParent(self) {
|
||||||
return self.parent.getCapability("composition")
|
return self.parent.getCapability("composition")
|
||||||
.add(self.firstClone.getId())
|
.add(self.firstClone)
|
||||||
.then(function (addedClone) {
|
.then(function (addedClone) {
|
||||||
return self.parent.getCapability("persistence").persist()
|
return self.parent.getCapability("persistence").persist()
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user