mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 21:52:35 +01:00
23 lines
378 B
PHP
23 lines
378 B
PHP
|
<?php
|
||
|
|
||
|
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');
|
||
|
}
|
||
|
}
|