invoiceninja/app/models/Timesheet.php

23 lines
341 B
PHP
Raw Normal View History

2014-10-01 02:46:35 +02:00
<?php
class Timesheet extends Eloquent
2014-10-01 02:46:35 +02:00
{
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');
}
2014-10-01 02:46:35 +02:00
}