From 9df97b72bdc90b195dd058f6ee68eece12509622 Mon Sep 17 00:00:00 2001 From: Dan Johansson Date: Sun, 2 Dec 2018 23:59:41 -0600 Subject: [PATCH] Add ResourceEvent To EVENT_FETCH_PRE --- src/Server/Resource/DoctrineResource.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Server/Resource/DoctrineResource.php b/src/Server/Resource/DoctrineResource.php index c7ffb0c3..d084a910 100644 --- a/src/Server/Resource/DoctrineResource.php +++ b/src/Server/Resource/DoctrineResource.php @@ -491,6 +491,7 @@ public function fetch($id) { $event = new DoctrineResourceEvent(DoctrineResourceEvent::EVENT_FETCH_PRE, $this); $event->setEntityClassName($this->getEntityClass()); + $event->setResourceEvent($this->getEvent()); $event->setEntityId($id); $eventManager = $this->getEventManager(); $response = $eventManager->triggerEvent($event);