@@ 81-88 (lines=8) @@ | ||
78 | { |
|
79 | $this->enabledBindingBefore = null; |
|
80 | ||
81 | if ($this->bindingDescriptors->contains($this->uuid)) { |
|
82 | $bindingDescriptor = $this->bindingDescriptors->get($this->uuid); |
|
83 | ||
84 | if ($bindingDescriptor->isEnabled()) { |
|
85 | // Clone so that rollback() works if the binding is unloaded |
|
86 | $this->enabledBindingBefore = clone $bindingDescriptor; |
|
87 | } |
|
88 | } |
|
89 | ||
90 | $this->snapshotTaken = true; |
|
91 | } |
|
@@ 105-112 (lines=8) @@ | ||
102 | // Remember for rollback() |
|
103 | $this->enabledBindingAfter = null; |
|
104 | ||
105 | if ($this->bindingDescriptors->contains($this->uuid)) { |
|
106 | $bindingDescriptor = $this->bindingDescriptors->get($this->uuid); |
|
107 | ||
108 | if ($bindingDescriptor->isEnabled()) { |
|
109 | // Clone so that rollback() works if the binding is unloaded |
|
110 | $this->enabledBindingAfter = clone $bindingDescriptor; |
|
111 | } |
|
112 | } |
|
113 | ||
114 | $this->syncBindingUuid($this->enabledBindingBefore, $this->enabledBindingAfter); |
|
115 | } |