public function getRegisteredModel($modelName)
    {
        try {
            $model = ArrayHelper::getValue($this->allModels, $modelName);
        } catch (KeyError $e) {
            $model = null;
        }
        if (null == $model) {
            throw new LookupError(
                sprintf("Models '%s' not registered.", $modelName)
            );
        }

        return $model;
    }
public function getRegisteredModel($modelName)
    {
        try {
            $model = ArrayHelper::getValue($this->allModels, $modelName);
        } catch (KeyError $e) {
            $model = null;
        }
        if (null == $model) {
            throw new LookupError(
                sprintf("Models '%s' not registered.", $modelName)
            );
        }

        return $model;
    }
public function getRegisteredModel ( $ modelName ) { try { $ model = ArrayHelper :: getValue ( $ this -> allModels , $ modelName ) ; } catch ( KeyError $ e ) { $ model = null ; } if ( null == $ model ) { throw new LookupError ( sprintf ( "Models '%s' not registered." , $ modelName ) ) ; } return $ model ; }
Gets a registered model. This method is used internally to get a
registered model without the possibility of side effects incase it not
registerd.

@param $modelName

@return mixed

@internal

@throws LookupError
Gets a registered model . This method is used internally to get a registered model without the possibility of side effects incase it not registerd .