protected function _modelNameFromKey($key)
    {
        $key = str_replace('_id', '', $key);

        return Inflector::camelize(Inflector::pluralize($key));
    }
protected function _modelNameFromKey($key)
    {
        $key = str_replace('_id', '', $key);

        return Inflector::camelize(Inflector::pluralize($key));
    }
protected function _modelNameFromKey ( $ key ) { $ key = str_replace ( '_id' , '' , $ key ) ; return Inflector :: camelize ( Inflector :: pluralize ( $ key ) ) ; }
Creates the proper model name from a foreign key

@param string $key Foreign key
@return string Model name
Creates the proper model name from a foreign key