#22 - wip
This commit is contained in:
		| @@ -26,6 +26,7 @@ use Toby\Domain\Enums\VacationType; | ||||
|  * @property User $user | ||||
|  * @property YearPeriod $yearPeriod | ||||
|  * @property Collection $activities | ||||
|  * @property Collection $vacations | ||||
|  * @property Carbon $created_at | ||||
|  * @property Carbon $updated_at | ||||
|  */ | ||||
| @@ -57,6 +58,11 @@ class VacationRequest extends Model | ||||
|         return $this->hasMany(VacationRequestActivity::class); | ||||
|     } | ||||
|  | ||||
|     public function vacations(): HasMany | ||||
|     { | ||||
|         return $this->hasMany(Vacation::class); | ||||
|     } | ||||
|  | ||||
|     public function changeStateTo(VacationRequestState $state): void | ||||
|     { | ||||
|         $this->state = $state; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user