protected function _deriveResourceName()
{
$inflectionType = $this->config('inflection');
if ($inflectionType === null) {
$inflectionType = $this->scope() === 'entity' ? 'singular' : 'plural';
}
if ($inflectionType === 'singular') {
return strtolower(Inflector::humanize(Inflector::singularize(Inflector::underscore($this->_table()->alias()))));
}
return strtolower(Inflector::humanize(Inflector::underscore($this->_table()->alias())));
}