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 d14d6a9 commit 42d5bccCopy full SHA for 42d5bcc
src/Plugin/Spy.php
@@ -14,12 +14,12 @@ class Spy extends Plugin
14
private $updated = [];
15
private $removed = [];
16
17
- public function beforeCreate(Entity $instance, Space $space) : Entity
+ public function afterCreate(Entity $instance, Space $space) : Entity
18
{
19
return $this->created[$this->getKey($instance, $space)] = $instance;
20
}
21
22
- public function beforeUpdate(Entity $instance, Space $space) : Entity
+ public function afterUpdate(Entity $instance, Space $space) : Entity
23
24
$key = $this->getKey($instance, $space);
25
if (!array_key_exists($key, $this->created)) {
0 commit comments