public function alias()
    {
        if ($this->alias === null) {
            $this->alias = strtolower(
                    preg_replace(
                    '/(?<!^)[A-Z]/', '_$0',
                    $this->getClassMetadata()->getReflectionClass()->getShortName()
                )
            );
        }

        return $this->alias;
    }