public function setEntityClass($name)
    {
        $class = App::className($name, 'Model/Entity');
        if (!$class) {
            throw new MissingEntityException([$name]);
        }

        $this->_entityClass = $class;

        return $this;
    }