change relation

This commit is contained in:
2025-12-28 12:35:49 +03:30
parent ef0ddac761
commit f7e044f65a
4 changed files with 4 additions and 4 deletions

View File

@@ -17,8 +17,8 @@ class MissionViolation extends Model
return $this->belongsTo(Mission::class);
}
public function machine(): HasOne
public function machine(): BelongsTo
{
return $this->hasOne(CMMSMachine::class);
return $this->belongsTo(CMMSMachine::class, 'machine_id');
}
}