diff --git a/app/Models/Statuslabel.php b/app/Models/Statuslabel.php index b9e3010bb9..5e2dfe1499 100755 --- a/app/Models/Statuslabel.php +++ b/app/Models/Statuslabel.php @@ -28,6 +28,11 @@ class Statuslabel extends Model return $this->hasMany('\App\Models\Asset', 'status_id')->count(); } + public function assets() + { + return $this->hasMany('\App\Models\Asset', 'status_id'); + } + public function getStatuslabelType() {