public function getEntityLink()
    {
        if ($this->EntityURL) {
            return $this->dbObject('EntityURL')->URL();
        }
        
        if ($this->EntityPageID) {
            return $this->EntityPage()->Link();
        }
    }