diff --git a/app/models/Location.php b/app/models/Location.php index ccb8d0a35b..b11416c528 100755 --- a/app/models/Location.php +++ b/app/models/Location.php @@ -23,6 +23,10 @@ class Location extends Elegant return $this->hasMany('Actionlog','location_id'); } + public function assignedassets() { + return $this->hasMany('Asset','rtd_location_id'); + } + public function parent() { return $this->belongsTo('Location', 'parent_id'); }