MetricPoint belongsTo a Metric
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
class MetricPoint extends Eloquent {
|
||||
|
||||
/**
|
||||
* A metric point belongs to a metric unit.
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function metric() {
|
||||
return $this->belongsTo('Metric', 'id', 'metric_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user