We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 534925c commit 22a9719Copy full SHA for 22a9719
src/Repository.php
@@ -476,9 +476,13 @@ private function addDefaultValues(Entity $instance): Entity
476
return $instance;
477
}
478
479
- public function getOriginal(Entity $instance): array
+ public function getOriginal(Entity $instance): ?array
480
{
481
- return $this->original[$this->space->getInstanceKey($instance)];
+ $key = $this->space->getInstanceKey($instance);
482
+
483
+ if (array_key_exists($key, $this->original)) {
484
+ return $this->original[$key];
485
+ }
486
487
488
private function getTuple(Entity $instance): array
0 commit comments