public function setModelName($name)
    {
        $this->_modelName = $name;
        $nameParts = explode("\\", $name);
        $controllerName = end($nameParts);
        $nameParts = Text::camelCaseToSeparator($controllerName, '#');
        $nameParts = explode('#', $nameParts);

        $final = Text::plural(strtolower(array_pop($nameParts)));
        $nameParts[] = ucfirst($final);
        $this->set('modelPlural', lcfirst(implode('', $nameParts)));
        $this->set('modelSingular', lcfirst($controllerName));
        return $this;
    }