2014-10-01 02:46:35 +02:00
|
|
|
<?php
|
|
|
|
|
|
2014-10-06 03:00:31 +02:00
|
|
|
class Timesheet extends Eloquent
|
2014-10-01 02:46:35 +02:00
|
|
|
{
|
2014-10-06 03:00:31 +02:00
|
|
|
public $timestamps = true;
|
|
|
|
|
protected $softDelete = true;
|
2014-10-01 03:01:41 +02:00
|
|
|
|
|
|
|
|
public function account()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('Account');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo('User');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function timesheet_events()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany('TimeSheetEvent');
|
|
|
|
|
}
|
2014-10-01 02:46:35 +02:00
|
|
|
}
|