MetricPoint belongsTo a Metric

This commit is contained in:
James Brooks
2014-12-01 08:53:32 +00:00
parent 093620e4ca
commit 0ae06acac2

View File

@@ -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');
}
}