OEModule\PASAPI\resources\PatientId::resolveModelId PHP Méthode

resolveModelId() protected méthode

Resolve the model by the given Patient Id.
protected resolveModelId ( ) : mixed
Résultat mixed
    protected function resolveModelId()
    {
        $model = $this->getModelForClass('Patient');
        $instance = $model->findByPk($this->Id);
        if ($instance) {
            return $instance;
        }
        $this->patientNotFound();
    }