Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Add ResourceEvent To EVENT_FETCH_PRE
Browse files Browse the repository at this point in the history
  • Loading branch information
datasage authored Dec 3, 2018
1 parent 6d45064 commit 9df97b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Server/Resource/DoctrineResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9df97b7

Please sign in to comment.