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

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

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

@return string
Base root alias for queries .