mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Return the proper Asset-Components relationship
This commit is contained in:
parent
8cfa8d97b4
commit
ee9133f722
|
@ -386,7 +386,7 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function components()
|
public function components()
|
||||||
{
|
{
|
||||||
|
return $this->belongsToMany('\App\Models\Component', 'components_assets', 'asset_id', 'component_id')->withPivot('id', 'assigned_qty', 'created_at')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue