Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu committed Apr 26, 2018
1 parent a9e603c commit 1671431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pho/Kernel/Traits/Node/PersistentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public function unserialize(/* mixed */ $data): void
}
$edge_id = ID::fromString($notification["edge"]);
//$edge = $this->kernel->gs()->edge($edge_id);
$notification = \ReflectionClass::newInstanceWithoutConstructor($class);// new $class($edge);
$n_ = new \ReflectionObject($notification);
$n_ = new \ReflectionClass($class);
$notification = $n_->newInstanceWithoutConstructor();// new $class($edge);
$property = $n_->getProperty("edge_id");
$property->setAccessible(true);
$property->setValue($notification, $edge_id);
Expand Down

0 comments on commit 1671431

Please sign in to comment.