Skip to content

Commit

Permalink
fix #434
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Jul 11, 2016
1 parent 78a82b3 commit 3528e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listener/RelatedModelsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function publishRelatedModels($action = null, $entity = null)
$subject = $this->_subject(compact('name', 'viewVar', 'query', 'association', 'entity'));
$event = $this->_trigger('relatedModel', $subject);

$controller->set($event->subject->viewVar, $event->subject->query);
$controller->set($event->subject->viewVar, $event->subject->query->toArray());
}
}

Expand Down

0 comments on commit 3528e5e

Please sign in to comment.