2015-03-18 09:39:03 +10:00
|
|
|
<?php namespace App\Models;
|
2015-03-17 07:45:25 +10:00
|
|
|
|
|
|
|
|
class Timesheet extends Eloquent
|
|
|
|
|
{
|
|
|
|
|
public $timestamps = true;
|
|
|
|
|
protected $softDelete = true;
|
|
|
|
|
|
|
|
|
|
public function account()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('Account');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('User');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function timesheet_events()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany('TimeSheetEvent');
|
|
|
|
|
}
|
|
|
|
|
}
|