protected function _deriveResourceName()
    {
        $inflectionType = $this->getConfig('inflection');

        if ($inflectionType === null) {
            $inflectionType = $this->scope() === 'entity' ? 'singular' : 'plural';
        }

        if ($inflectionType === 'singular') {
            return strtolower(Inflector::humanize(
                Inflector::singularize(Inflector::underscore($this->_table()->getAlias()))
            ));
        }

        return strtolower(Inflector::humanize(Inflector::underscore($this->_table()->getAlias())));
    }