fix misc models (#9935)

lnms ide-helper:models now works
This commit is contained in:
Tony Murray 2019-03-12 21:05:01 -05:00 committed by GitHub
parent 0ae24b22fd
commit 17b5d7f0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ class Alert extends Model
public function rule()
{
return $this->belongsTo('App\Models\Rule', 'rule_id', 'id');
return $this->belongsTo('App\Models\AlertRule', 'rule_id', 'id');
}
public function users()

View File

@ -85,6 +85,6 @@ class AlertRule extends BaseModel
public function devices()
{
return $this->belongsToMany('App\Models\Device', 'alert_device_map', 'device_id', 'device_id', 'devices');
return $this->belongsToMany('App\Models\Device', 'alert_device_map', 'device_id', 'device_id');
}
}

View File

@ -594,7 +594,7 @@ class Device extends BaseModel
public function syslogs()
{
return $this->hasMany('App\Models\General\Syslog', 'device_id', 'device_id');
return $this->hasMany('App\Models\Syslog', 'device_id', 'device_id');
}
public function users()