protected function generateClassName($tableName, $short = false)
    {
        $ns = null;
        if (list($prefix, $ns) = $this->tablePrefixMatches($tableName)) {
            $tableName = substr($tableName, strlen($prefix));
        }
        $className = parent::generateClassName($tableName);

        if (null !== $ns && $short === false) {
            $className = '\\' . trim($this->ns . '\\' . $ns, '\\') . '\\' . $className;
        }
        return $className;
    }