protected function getModelRecord($model)
    {
        if (!class_exists($model)) {
            throw new ModuleException(__CLASS__, "Model $model does not exist");
        }

        $record = new $model;
        if (!$record instanceof PhalconModel) {
            throw new ModuleException(__CLASS__, "Model $model is not instance of \\Phalcon\\Mvc\\Model");
        }

        return $record;
    }
protected function getModelRecord($model)
    {
        if (!class_exists($model)) {
            throw new ModuleException(__CLASS__, "Model $model does not exist");
        }

        $record = new $model;
        if (!$record instanceof PhalconModel) {
            throw new ModuleException(__CLASS__, "Model $model is not instance of \\Phalcon\\Mvc\\Model");
        }

        return $record;
    }
protected function getModelRecord ( $ model ) { if ( ! class_exists ( $ model ) ) { throw new ModuleException ( __CLASS__ , "Model $model does not exist" ) ; } $ record = new $ model ; if ( ! $ record instanceof PhalconModel ) { throw new ModuleException ( __CLASS__ , "Model $model is not instance of \\Phalcon\\Mvc\\Model" ) ; } return $ record ; }
Get Model Record

@param $model

@return \Phalcon\Mvc\Model
@throws ModuleException
Get Model Record