protected function _preDispatch($action) { if (!is_null($this->_adminPermission)) { $this->assertAdminPermission($this->_adminPermission); } if ($dataModelName = static::_getDataModelName()) { $this->_dataModel = $this->getModelFromCache($dataModelName); $repoName = $this->_getRepositoryName(); $this->_repository = new $repoName($this->_dataModel); $this->_id = $this->_input->filterSingle($dataModelName::getKey(), self::UINT); } parent::_preDispatch($action); }