* #23 - wip * #23 - wip * #23 - wip * #23 - wip * #23 - fix * #23 - ecs fix * #23 - fix * #23 - fix * #23 - cr fix
This commit is contained in:
		| @@ -7,10 +7,13 @@ namespace Toby\Models; | ||||
| use Carbon\Carbon; | ||||
| use Illuminate\Database\Eloquent\Factories\HasFactory; | ||||
| use Illuminate\Database\Eloquent\Model; | ||||
| use Illuminate\Database\Eloquent\Relations\HasMany; | ||||
| use Illuminate\Support\Collection; | ||||
|  | ||||
| /** | ||||
|  * @property int $id | ||||
|  * @property int $year | ||||
|  * @property Collection $vacationLimits | ||||
|  */ | ||||
| class YearPeriod extends Model | ||||
| { | ||||
| @@ -27,4 +30,9 @@ class YearPeriod extends Model | ||||
|  | ||||
|         return $year; | ||||
|     } | ||||
|  | ||||
|     public function vacationLimits(): HasMany | ||||
|     { | ||||
|         return $this->hasMany(VacationLimit::class); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user