Skip to content

Commit

Permalink
Remove unnecessary method call.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 28, 2021
1 parent 9529a27 commit 7cf253c
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 @@ -99,7 +99,7 @@ public function publishRelatedModels(?string $action = null, ?EntityInterface $e
}

$finder = $this->finder($association);
$query = $association->find()->find($finder, $this->_findOptions($association));
$query = $association->find($finder, $this->_findOptions($association));
$subject = $this->_subject(compact('name', 'viewVar', 'query', 'association', 'entity'));
$event = $this->_trigger('relatedModel', $subject);

Expand Down

0 comments on commit 7cf253c

Please sign in to comment.