protected resolveModelId ( ) : mixed | ||
return | mixed |
protected function resolveModelId()
{
$model = $this->getModelForClass('Patient');
$instance = $model->findByPk($this->Id);
if ($instance) {
return $instance;
}
$this->patientNotFound();
}