The generated file is in the right location but the model use still points to the wrong location (In this case App\Models\CronOnCallSchedule instead of App\Domain\OnCall\Models\CronOnCallSchedule
Describe the solution you'd like
By default, point it to the nearest model according to the context given. In this case app\Domain\OnCall\Model\CronOnCallSchedulePolicy
Is your feature request related to a problem? Please describe.
When generating a Policy for a Model with for example:
The generated file is in the right location but the model
use
still points to the wrong location (In this caseApp\Models\CronOnCallSchedule
instead ofApp\Domain\OnCall\Models\CronOnCallSchedule
Describe the solution you'd like
By default, point it to the nearest model according to the context given. In this case
app\Domain\OnCall\Model\CronOnCallSchedulePolicy
Describe alternatives you've considered
providing the full model path works:
but is still a hassle to write out the full path.
Additional context
None. If you have any specific questions, shoot!
Thank you for this helpful tool!