mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
commit
b28ec2ace2
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user