From e5245c22d45257a440b202daf04696f7624f065e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 30 Jun 2020 13:50:46 +1000 Subject: [PATCH] Fixes tests --- app/Repositories/BaseRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/BaseRepository.php b/app/Repositories/BaseRepository.php index 1de29f8998dd..1baeb4ebf3bb 100644 --- a/app/Repositories/BaseRepository.php +++ b/app/Repositories/BaseRepository.php @@ -337,7 +337,7 @@ class BaseRepository public function newEntityEvent($model) { - $className = $this->getEventClass($entity, 'Created'); + $className = $this->getEventClass($model, 'Created'); if (class_exists($className)) { event(new $className($model, $model->company));