1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #3866 from turbo124/v2

Fixes tests
This commit is contained in:
David Bomba 2020-06-30 13:51:04 +10:00 committed by GitHub
commit b28ec2ace2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));